2023-12-29 16:06:09 +00:00
|
|
|
{
|
2024-01-15 22:26:51 +00:00
|
|
|
description = "Minimal git server";
|
|
|
|
|
2023-12-29 16:06:09 +00:00
|
|
|
inputs = {
|
2024-01-15 22:26:51 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
2023-12-29 16:06:09 +00:00
|
|
|
tailwind-ctp = {
|
2024-03-08 22:34:51 +00:00
|
|
|
url = "git+https://git.jolheiser.com/tailwind-ctp";
|
2023-12-29 16:06:09 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-01-15 22:26:51 +00:00
|
|
|
tailwind-ctp-lsp = {
|
2024-03-08 22:34:51 +00:00
|
|
|
url = "git+https://git.jolheiser.com/tailwind-ctp-intellisense";
|
2024-01-15 22:26:51 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-12-29 16:06:09 +00:00
|
|
|
};
|
|
|
|
|
2024-08-13 04:53:49 +00:00
|
|
|
outputs =
|
|
|
|
{
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
tailwind-ctp,
|
|
|
|
tailwind-ctp-lsp,
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"i686-linux"
|
|
|
|
"x86_64-darwin"
|
|
|
|
"aarch64-linux"
|
|
|
|
"armv6l-linux"
|
|
|
|
"armv7l-linux"
|
2024-05-31 01:08:20 +00:00
|
|
|
];
|
2024-08-13 04:53:49 +00:00
|
|
|
forAllSystems = f: nixpkgs.lib.genAttrs systems f;
|
|
|
|
tctp = forAllSystems (system: tailwind-ctp.packages.${system}.default);
|
|
|
|
tctpl = forAllSystems (system: tailwind-ctp-lsp.packages.${system}.default);
|
|
|
|
in
|
|
|
|
{
|
|
|
|
packages = forAllSystems (system: import ./nix { pkgs = import nixpkgs { inherit system; }; });
|
|
|
|
devShells = forAllSystems (
|
|
|
|
system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
|
|
go
|
|
|
|
gopls
|
|
|
|
templ
|
|
|
|
tctp.${system}
|
|
|
|
tctpl.${system}
|
|
|
|
vscode-langservers-extracted
|
2024-07-26 16:44:28 +00:00
|
|
|
];
|
2024-01-15 22:26:51 +00:00
|
|
|
};
|
2024-08-13 04:53:49 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
nixosModules.default = import ./nix/module.nix;
|
2024-01-15 22:26:51 +00:00
|
|
|
};
|
2023-12-29 16:06:09 +00:00
|
|
|
}
|