nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 35 lines 709 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "gat"; 9 version = "0.24.1"; 10 11 src = fetchFromGitHub { 12 owner = "koki-develop"; 13 repo = "gat"; 14 tag = "v${version}"; 15 hash = "sha256-xP7xDuab8QH1PULgF8/FGwDNV/5bYqXkvxgR/Mk4GVw="; 16 }; 17 18 vendorHash = "sha256-1uIpgcl+6H7aleW28YE8IidJysEB2n+wt2Dz0kZGNzk="; 19 20 env.CGO_ENABLED = 0; 21 22 ldflags = [ 23 "-s" 24 "-w" 25 "-X github.com/koki-develop/gat/cmd.version=v${version}" 26 ]; 27 28 meta = with lib; { 29 description = "Cat alternative written in Go"; 30 license = licenses.mit; 31 homepage = "https://github.com/koki-develop/gat"; 32 maintainers = with maintainers; [ themaxmur ]; 33 mainProgram = "gat"; 34 }; 35}