2022-11-29 19:55:00 -07:00
|
|
|
{
|
|
|
|
description = "gostart: a tailscale aware start page";
|
|
|
|
|
2023-06-06 13:30:28 -06:00
|
|
|
inputs.nixpkgs.url = "nixpkgs/nixos-23.05";
|
2022-11-29 19:55:00 -07:00
|
|
|
|
|
|
|
outputs = { self, nixpkgs }:
|
|
|
|
let
|
|
|
|
supportedSystems =
|
|
|
|
[ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
|
|
|
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
|
|
|
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
|
|
|
in {
|
2022-12-05 19:56:51 -07:00
|
|
|
overlay = final: prev: {
|
2022-12-05 20:09:32 -07:00
|
|
|
gostart = self.packages.${prev.system}.gostart;
|
2022-12-05 19:56:51 -07:00
|
|
|
};
|
|
|
|
nixosModule = import ./module.nix;
|
2022-11-29 19:55:00 -07:00
|
|
|
packages = forAllSystems (system:
|
|
|
|
let pkgs = nixpkgsFor.${system};
|
|
|
|
in {
|
2023-04-14 10:29:47 -06:00
|
|
|
gostart = pkgs.buildGo120Module {
|
2022-11-29 19:55:00 -07:00
|
|
|
pname = "gostart";
|
2023-06-06 13:30:28 -06:00
|
|
|
version = "v0.2.1";
|
2022-11-29 19:55:00 -07:00
|
|
|
src = ./.;
|
|
|
|
|
2023-06-06 13:30:28 -06:00
|
|
|
vendorHash =
|
|
|
|
"sha256-rpe66ZpKRtP+xYXbTCGmzYwjwHOsfSWi/BvsW7rr0OM=";
|
2022-11-29 19:55:00 -07:00
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
defaultPackage = forAllSystems (system: self.packages.${system}.gostart);
|
|
|
|
devShells = forAllSystems (system:
|
|
|
|
let pkgs = nixpkgsFor.${system};
|
|
|
|
in {
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
shellHook = ''
|
|
|
|
PS1='\u@\h:\@; '
|
2023-05-12 07:10:46 -06:00
|
|
|
nix run github:qbit/xin#flake-warn
|
2022-11-29 19:55:00 -07:00
|
|
|
echo "Go `${pkgs.go}/bin/go version`"
|
|
|
|
'';
|
2022-12-04 19:03:59 -07:00
|
|
|
nativeBuildInputs = with pkgs; [
|
2023-05-18 13:10:25 -06:00
|
|
|
elmPackages.elm
|
|
|
|
entr
|
2022-12-04 19:03:59 -07:00
|
|
|
git
|
2023-05-18 13:10:25 -06:00
|
|
|
go-tools
|
2023-04-14 10:29:47 -06:00
|
|
|
go_1_20
|
2022-12-04 19:03:59 -07:00
|
|
|
gopls
|
2023-05-18 13:10:25 -06:00
|
|
|
rlwrap
|
2022-12-04 19:03:59 -07:00
|
|
|
sqlc
|
|
|
|
sqlite
|
|
|
|
];
|
2022-11-29 19:55:00 -07:00
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|