···10 inherit sha256;
11 };
120013 vendorSha256 = "1ral3xg58x0lf5vl839nlabf443yzqnbrlzm0q127mvv412f5ajc";
1415- nativeBuildInputs = [ autoreconfHook pkg-config];
16 buildInputs = [ libiconv openssl pcre zlib ];
1718 inherit (buildGoModule.go) GOOS GOARCH;
···37 '';
3839 # zabbix build process is complex to get right in nix...
40- # we need to manipulate a number of things for their build
41- # system to properly work
42 buildPhase = ''
43- cp -r vendor src/go/vendor
44 make
45 '';
46···48 install -Dm0644 src/go/conf/zabbix_agent2.conf $out/etc/zabbix_agent2.conf
49 install -Dm0755 src/go/bin/zabbix_agent2 $out/bin/zabbix_agent2
50 '';
51-52- # run `go mod vendor` from the correct directory
53- overrideModAttrs = (_oldAttrs : {
54- preConfigure = ''
55- cd src/go
56- '';
57- });
5859 meta = with lib; {
60 description = "An enterprise-class open source distributed monitoring solution (client-side agent)";
···10 inherit sha256;
11 };
1213+ modRoot = "src/go";
14+15 vendorSha256 = "1ral3xg58x0lf5vl839nlabf443yzqnbrlzm0q127mvv412f5ajc";
1617+ nativeBuildInputs = [ autoreconfHook pkg-config ];
18 buildInputs = [ libiconv openssl pcre zlib ];
1920 inherit (buildGoModule.go) GOOS GOARCH;
···39 '';
4041 # zabbix build process is complex to get right in nix...
42+ # use automake to build the go project ensuring proper access to the go vendor directory
043 buildPhase = ''
44+ cd ../..
45 make
46 '';
47···49 install -Dm0644 src/go/conf/zabbix_agent2.conf $out/etc/zabbix_agent2.conf
50 install -Dm0755 src/go/bin/zabbix_agent2 $out/bin/zabbix_agent2
51 '';
00000005253 meta = with lib; {
54 description = "An enterprise-class open source distributed monitoring solution (client-side agent)";
+2-2
pkgs/tools/misc/jdupes/default.nix
···23stdenv.mkDerivation rec {
4 pname = "jdupes";
5- version = "1.19.1";
67 src = fetchFromGitHub {
8 owner = "jbruchon";
9 repo = "jdupes";
10 rev = "v${version}";
11- sha256 = "sha256-1gx3rStqIxLt/iRgpdp5z7tX1/wA0miZ1y5WTeGQ1Vs=";
12 # Unicode file names lead to different checksums on HFS+ vs. other
13 # filesystems because of unicode normalisation. The testdir
14 # directories have such files and will be removed.
···23stdenv.mkDerivation rec {
4 pname = "jdupes";
5+ version = "1.19.2";
67 src = fetchFromGitHub {
8 owner = "jbruchon";
9 repo = "jdupes";
10 rev = "v${version}";
11+ sha256 = "sha256-3lWrSybYp3RrUnydosgsNkGQjrk7JvxuxjMslN4cGfk=";
12 # Unicode file names lead to different checksums on HFS+ vs. other
13 # filesystems because of unicode normalisation. The testdir
14 # directories have such files and will be removed.