2022-11-29 19:55:00 -07:00
|
|
|
{
|
|
|
|
description = "gostart: a tailscale aware start page";
|
|
|
|
|
|
|
|
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
|
|
|
|
|
|
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-04-14 10:29:47 -06:00
|
|
|
version = "v0.1.12";
|
2022-11-29 19:55:00 -07:00
|
|
|
src = ./.;
|
|
|
|
|
2022-12-04 19:03:59 -07:00
|
|
|
vendorSha256 =
|
2023-04-14 10:29:47 -06:00
|
|
|
"sha256-DvtZQK0bOXJfBYXnT8cRH6W2BOktJMsQCB8BQFw30T0=";
|
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; [
|
|
|
|
git
|
2023-04-14 10:29:47 -06:00
|
|
|
go_1_20
|
2022-12-04 19:03:59 -07:00
|
|
|
gopls
|
|
|
|
go-tools
|
|
|
|
sqlc
|
|
|
|
sqlite
|
|
|
|
rlwrap
|
2023-04-23 19:12:26 -06:00
|
|
|
elmPackages.elm
|
|
|
|
elmPackages.elm-live
|
2022-12-04 19:03:59 -07:00
|
|
|
];
|
2022-11-29 19:55:00 -07:00
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|