Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 33 lines 697 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5}: 6 7buildGoModule rec { 8 pname = "gitty"; 9 version = "0.7.0"; 10 11 src = fetchFromGitHub { 12 owner = "muesli"; 13 repo = "gitty"; 14 rev = "v${version}"; 15 sha256 = "sha256-g0D6nJiHY7cz72DSmdQZsj9Vgv/VOp0exTcLsaypGiU="; 16 }; 17 18 vendorHash = "sha256-qrLECQkjXH0aTHmysq64jnXj9jgbunpVtBAIXJOEYIY="; 19 20 ldflags = [ 21 "-s" 22 "-w" 23 "-X=main.Version=${version}" 24 ]; 25 26 meta = with lib; { 27 homepage = "https://github.com/muesli/gitty/"; 28 description = "Contextual information about your git projects, right on the command-line"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ izorkin ]; 31 mainProgram = "gitty"; 32 }; 33}