{ stdenv, buildGoModule, fetchFromGitHub }: buildGoModule rec { pname = "ghq"; version = "1.1.2"; src = fetchFromGitHub { owner = "x-motemen"; repo = "ghq"; rev = "v${version}"; sha256 = "1qzrycmd26f4q36z3rblfxp7jngqgmspb9385vpfwv9laiw3sqrg"; }; vendorSha256 = "0x347ljj9q3zi0zf8x13dhvsydv9vg4qc5l1kc2y56v0w8hlb4p7"; buildFlagsArray = '' -ldflags= -X=main.Version=${version} ''; postInstall = '' install -m 444 -D ${src}/misc/zsh/_ghq $out/share/zsh/site-functions/_ghq install -m 444 -D ${src}/misc/bash/_ghq $out/share/bash-completion/completions/_ghq ''; meta = { description = "Remote repository management made easy"; homepage = "https://github.com/x-motemen/ghq"; maintainers = with stdenv.lib.maintainers; [ sigma ]; license = stdenv.lib.licenses.mit; }; }