Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 76 lines 1.7 kB view raw
1{ stdenv 2, buildGoModule 3, fetchFromGitHub 4, lib 5, symlinkJoin 6}: 7 8let p2 = buildGoModule rec { 9 pname = "packr2"; 10 version = "2.8.0"; 11 12 src = fetchFromGitHub { 13 owner = "gobuffalo"; 14 repo = "packr"; 15 rev = "v${version}"; 16 hash = "sha256-UfnL3Lnq3ocXrTqKtmyar6BoKUUHHKMOFCiD5wX26PQ="; 17 }+"/v2"; 18 19 subPackages = [ "packr2" ]; 20 21 vendorHash = "sha256-N3u+DmEe0r72zFPb8El/MwjyIcTehQRE+MgusIII2Is="; 22 23 doCheck = false; 24 25 meta = with lib; { 26 description = "Simple and easy way to embed static files into Go binaries"; 27 homepage = "https://github.com/gobuffalo/packr"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ mmahut ]; 30 31 # golang.org/x/sys needs to be updated due to: 32 # 33 # https://github.com/golang/go/issues/49219 34 # 35 # but this package is no longer maintained. 36 # 37 broken = stdenv.isDarwin; 38 }; 39}; 40p1 = buildGoModule rec { 41 pname = "packr1"; 42 version = "2.8.0"; 43 44 src = fetchFromGitHub { 45 owner = "gobuffalo"; 46 repo = "packr"; 47 rev = "v${version}"; 48 hash = "sha256-UfnL3Lnq3ocXrTqKtmyar6BoKUUHHKMOFCiD5wX26PQ="; 49 }; 50 51 subPackages = [ "packr" ]; 52 53 vendorHash = "sha256-6mlV3q7irI0aoeB91OYSD3RvmwYcNXRNkSYowjmSflQ="; 54 55 doCheck = false; 56 57 meta = with lib; { 58 description = "Simple and easy way to embed static files into Go binaries"; 59 homepage = "https://github.com/gobuffalo/packr"; 60 license = licenses.mit; 61 maintainers = with maintainers; [ mmahut ]; 62 63 # golang.org/x/sys needs to be updated due to: 64 # 65 # https://github.com/golang/go/issues/49219 66 # 67 # but this package is no longer maintained. 68 # 69 broken = stdenv.isDarwin; 70 }; 71}; 72in 73symlinkJoin{ 74 name = "packr"; 75 paths = [p1 p2]; 76}