Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: edd5ddf4af0d
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d25ac92fe52f
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Feb 23, 2020

  1. ghq: 0.12.6 -> 1.1.0

    cohei committed Feb 23, 2020
    Copy the full SHA
    b974f05 View commit details

Commits on Feb 27, 2020

  1. Merge pull request #80887 from cohei/update-ghq

    ghq: 0.12.6 -> 1.1.0
    madjar authored Feb 27, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d25ac92 View commit details
Showing with 8 additions and 15 deletions.
  1. +8 −15 pkgs/applications/version-management/git-and-tools/ghq/default.nix
23 changes: 8 additions & 15 deletions pkgs/applications/version-management/git-and-tools/ghq/default.nix
Original file line number Diff line number Diff line change
@@ -1,38 +1,31 @@
{ stdenv, buildGoModule, fetchFromGitHub, fetchpatch }:
{ stdenv, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
pname = "ghq";
version = "0.12.6";
version = "1.1.0";

src = fetchFromGitHub {
owner = "motemen";
owner = "x-motemen";
repo = "ghq";
rev = "v${version}";
sha256 = "14rm7fvphr7r9x0ys10vhzjwhfhhscgr574n1i1z4lzw551lrnp4";
sha256 = "1i0q9lxdxbyj0l0510cbkwkbycawrx8cxlbdrhb2p2fnk0vqnyiv";
};

modSha256 = "1y2v8ir7kc2avgri06nagfyaxqr3xrg4g5pxl9rwzq9dyzm6ci5z";
modSha256 = "0hlbhky3c6zva9khn73n6xgq57k5p8anskxy3g2m0wzhr72cyc41";

buildFlagsArray = ''
-ldflags=
-X=main.Version=${version}
'';

postInstall = ''
install -m 444 -D ${src}/zsh/_ghq $out/share/zsh/site-functions/_ghq
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
'';

patches = [
(fetchpatch {
# remove once the commit lands in a release.
url = "https://github.com/motemen/ghq/commit/38ac89e60e60182b5870108f9753c9fe8d00e4a6.patch";
sha256 = "1z8yvzmka3sh44my6jnwc39p8zs7mczxgvwc9z0pkqk4vgvaj8gj";
})
];

meta = {
description = "Remote repository management made easy";
homepage = https://github.com/motemen/ghq;
homepage = https://github.com/x-motemen/ghq;
maintainers = with stdenv.lib.maintainers; [ sigma ];
license = stdenv.lib.licenses.mit;
};