nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 fetchpatch,
6}:
7
8buildGoModule rec {
9 pname = "compile-daemon";
10 version = "1.4.0";
11
12 src = fetchFromGitHub {
13 owner = "githubnemo";
14 repo = "CompileDaemon";
15 rev = "v${version}";
16 sha256 = "sha256-gpyXy7FO7ZVXJrkzcKHFez4S/dGiijXfZ9eSJtNlm58=";
17 };
18
19 vendorHash = "sha256-UpktrXY6OntOA1sxKq3qI59zrOwwCuM+gfGGxPmUJRo=";
20
21 patches = [
22 (fetchpatch {
23 url = "https://github.com/githubnemo/CompileDaemon/commit/39bc1352dc62fea06dff40c5eaef81ab1bdb1f14.patch";
24 hash = "sha256-Zftbw2nu8zzaoj0uwEwdq7xlyycdC0xxBu/qE9VHASI=";
25 })
26 ];
27
28 ldflags = [
29 "-s"
30 "-w"
31 ];
32
33 meta = {
34 description = "Very simple compile daemon for Go";
35 homepage = "https://github.com/githubnemo/CompileDaemon";
36 license = lib.licenses.bsd2;
37 maintainers = [ ];
38 mainProgram = "CompileDaemon";
39 };
40}