2024-03-06 12:59:27 +00:00
|
|
|
{
|
|
|
|
description = "A small listener for notifications";
|
|
|
|
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
|
2024-03-07 02:07:03 +00:00
|
|
|
outputs = { self, nixpkgs }:
|
|
|
|
let
|
|
|
|
allSystems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
"x86_64-darwin"
|
|
|
|
"aarch64-darwin"
|
|
|
|
];
|
|
|
|
forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f {
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
});
|
|
|
|
in
|
|
|
|
{
|
2024-03-07 02:33:35 +00:00
|
|
|
overlay = final: prev: { notlistener = prev.pkgs.callPackage ./. { }; };
|
|
|
|
|
2024-03-07 02:07:03 +00:00
|
|
|
packages = forAllSystems ({ pkgs }: {
|
|
|
|
default = pkgs.buildGoModule {
|
|
|
|
name = "notlistener";
|
|
|
|
src = ./.;
|
|
|
|
vendorHash = "sha256-fWdevnLKgk3ng1aaIGy7d6mf2bbqsfL8SigpaSyzJ9A=";
|
|
|
|
buildInputs = [ pkgs.libnotify ];
|
|
|
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
|
|
|
};
|
|
|
|
});
|
|
|
|
devShells = forAllSystems ({ pkgs }: {
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
packages = with pkgs; [
|
|
|
|
go
|
|
|
|
libnotify
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
2024-03-06 12:59:27 +00:00
|
|
|
}
|