Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 40 lines 807 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 testers, 6 scmpuff, 7}: 8 9buildGoModule rec { 10 pname = "scmpuff"; 11 version = "0.5.0"; 12 13 src = fetchFromGitHub { 14 owner = "mroth"; 15 repo = "scmpuff"; 16 rev = "v${version}"; 17 sha256 = "sha256-+L0W+M8sZdUSCWj9Ftft1gkRRfWMHdxon2xNnotx8Xs="; 18 }; 19 20 vendorHash = "sha256-7WHVSEz3y1nxWfbxkzkfHhINLC8+snmWknHyUUpNy7c="; 21 22 ldflags = [ 23 "-s" 24 "-w" 25 "-X main.VERSION=${version}" 26 ]; 27 28 passthru.tests.version = testers.testVersion { 29 package = scmpuff; 30 command = "scmpuff version"; 31 }; 32 33 meta = with lib; { 34 description = "Add numbered shortcuts to common git commands"; 35 homepage = "https://github.com/mroth/scmpuff"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ cpcloud ]; 38 mainProgram = "scmpuff"; 39 }; 40}