https://git.jolheiser.com/git-pr-nix.git
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
{ pkgs ? import <nixpkgs>, }: pkgs.buildGoModule rec { pname = "git-pr"; version = "0.3.0"; src = pkgs.fetchFromGitHub { owner = "picosh"; repo = pname; rev = "v${version}"; sha256 = "sha256-2A2rP7yr8faVoIYAWprr+t7MwDPerhsuOjWWEl1mhXw="; }; vendorHash = "sha256-7aHr5CWZVmhBiuCXaK49zYJXMufCxZBnS917mF0QJlg="; subPackages = [ "cmd/ssh" "cmd/web" ]; env.CGO_ENABLED = 0; postInstall = '' mv $out/bin/ssh $out/bin/git-ssh mv $out/bin/web $out/bin/git-web ''; meta = with pkgs.lib; { description = "The easiest git collaboration tool"; homepage = "https://github.com/picosh/git-pr"; license = licenses.mit; }; }