nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at devShellTools-shell 53 lines 1.1 kB view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 installShellFiles, 6 testers, 7 nix-update-script, 8 ghq, 9}: 10 11buildGoModule rec { 12 pname = "ghq"; 13 version = "1.8.0"; 14 15 src = fetchFromGitHub { 16 owner = "x-motemen"; 17 repo = "ghq"; 18 tag = "v${version}"; 19 sha256 = "sha256-5BN96/RShfJpkfpJe0qrZVDuyFoAV9kgCiBv4REY/5Y="; 20 }; 21 22 vendorHash = "sha256-jP2Ne/EhmE3tACY1+lHucgBt3VnT4gaQisE3/gVM5Ec="; 23 24 doCheck = false; 25 26 ldflags = [ 27 "-X=main.Version=${version}" 28 ]; 29 30 nativeBuildInputs = [ installShellFiles ]; 31 32 postInstall = '' 33 installShellCompletion \ 34 --bash $src/misc/bash/_ghq \ 35 --fish $src/misc/fish/ghq.fish \ 36 --zsh $src/misc/zsh/_ghq 37 ''; 38 39 passthru = { 40 tests.version = testers.testVersion { 41 package = ghq; 42 }; 43 updateScript = nix-update-script { }; 44 }; 45 46 meta = { 47 description = "Remote repository management made easy"; 48 homepage = "https://github.com/x-motemen/ghq"; 49 maintainers = with lib.maintainers; [ sigma ]; 50 license = lib.licenses.mit; 51 mainProgram = "ghq"; 52 }; 53}