Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 38 lines 849 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "gomtree"; 9 version = "0.5.4"; 10 11 src = fetchFromGitHub { 12 owner = "vbatts"; 13 repo = "go-mtree"; 14 rev = "v${version}"; 15 hash = "sha256-MDX16z4H1fyuV5atEsZHReJyvC+MRdeA54DORCFtpqI="; 16 }; 17 18 vendorHash = null; 19 20 # test fails with nix due to ro file system 21 checkFlags = [ "-skip=^TestXattr$" ]; 22 23 subPackages = [ "cmd/gomtree" ]; 24 25 ldflags = [ 26 "-s" 27 "-X main.Version=${version}" 28 ]; 29 30 meta = { 31 description = "File systems verification utility and library, in likeness of mtree(8)"; 32 changelog = "https://github.com/vbatts/go-mtree/releases/tag/v${version}"; 33 homepage = "https://github.com/vbatts/go-mtree"; 34 license = lib.licenses.bsd3; 35 maintainers = with lib.maintainers; [ phanirithvij ]; 36 mainProgram = "gomtree"; 37 }; 38}