Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 39 lines 753 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 nix-update-script, 6}: 7 8buildGoModule rec { 9 pname = "gut"; 10 version = "0.3.2"; 11 12 src = fetchFromGitHub { 13 owner = "julien040"; 14 repo = "gut"; 15 rev = version; 16 hash = "sha256-3A6CwGIZGnTFkMRxDdDg/WpUQezNmGjjSz4Rj/6t1GI="; 17 }; 18 19 vendorHash = "sha256-EL+fsh603ydZfc3coI8VXkvAStQ0fwzBsJIOztB/VHc="; 20 21 ldflags = [ 22 "-s" 23 "-w" 24 "-X github.com/julien040/gut/src/telemetry.gutVersion=${version}" 25 ]; 26 27 # Depends on `/home` existing 28 doCheck = false; 29 30 passthru.updateScript = nix-update-script { }; 31 32 meta = with lib; { 33 description = "Alternative git CLI"; 34 homepage = "https://gut-cli.dev"; 35 license = licenses.mit; 36 maintainers = [ ]; 37 mainProgram = "gut"; 38 }; 39}