2023-01-29 05:47:45 -07:00
|
|
|
{
|
|
|
|
description = "po: pushover notification tool";
|
|
|
|
|
2024-03-23 06:21:35 -06:00
|
|
|
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
|
2023-01-29 05:47:45 -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 {
|
2023-01-29 05:49:45 -07:00
|
|
|
overlay = final: prev: {
|
|
|
|
po = self.packages.${prev.system}.po;
|
|
|
|
};
|
2023-01-29 05:47:45 -07:00
|
|
|
packages = forAllSystems (system:
|
|
|
|
let pkgs = nixpkgsFor.${system};
|
|
|
|
in {
|
|
|
|
po = pkgs.buildGoModule {
|
|
|
|
pname = "po";
|
2024-03-23 06:21:35 -06:00
|
|
|
version = "v1.0.0";
|
2023-01-29 05:47:45 -07:00
|
|
|
src = ./.;
|
|
|
|
|
2024-03-23 06:21:35 -06:00
|
|
|
vendorHash = "sha256-ftBMG3c5uDkNiOiZvO/ixa8FOrMfE8VM1AmLTSlYu2o=";
|
2023-01-29 05:47:45 -07:00
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
defaultPackage = forAllSystems (system: self.packages.${system}.po);
|
|
|
|
devShells = forAllSystems (system:
|
|
|
|
let pkgs = nixpkgsFor.${system};
|
|
|
|
in {
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
shellHook = ''
|
|
|
|
PS1='\u@\h:\@; '
|
|
|
|
echo "Go `${pkgs.go}/bin/go version`"
|
|
|
|
'';
|
|
|
|
nativeBuildInputs = with pkgs; [ git go gopls go-tools ];
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|