notlistener/default.nix

24 lines
550 B
Nix
Raw Normal View History

2024-03-06 12:59:27 +00:00
{ pkgs ? (
let
inherit (builtins) fetchTree fromJSON readFile;
inherit ((fromJSON (readFile ./flake.lock)).nodes) nixpkgs gomod2nix;
in
import (fetchTree nixpkgs.locked) {
overlays = [
(import "${fetchTree gomod2nix.locked}/overlay.nix")
];
}
)
, buildGoApplication ? pkgs.buildGoApplication
}:
buildGoApplication {
pname = "notlistener";
version = "0.1.0";
pwd = ./.;
src = ./.;
modules = ./gomod2nix.toml;
nativeBuildInputs = [ pkgs.pkg-config ];
buildInputs = [ pkgs.libnotify ];
}