diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-11-01 00:00:57 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-11-01 00:00:57 +0100 |
commit | 3a884736fc21b9a7b3865ad4735eaf39dc853da6 (patch) | |
tree | 6d7547a577e44aafcea187d4e5e4ba127c470e60 /pkgs/gemget/default.nix | |
parent | ad396ed96b5eb93bca1b42540112ab557fbf7f25 (diff) | |
download | pnpkgs-3a884736fc21b9a7b3865ad4735eaf39dc853da6.tar.gz pnpkgs-3a884736fc21b9a7b3865ad4735eaf39dc853da6.zip |
Add gemget
Diffstat (limited to 'pkgs/gemget/default.nix')
-rw-r--r-- | pkgs/gemget/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/gemget/default.nix b/pkgs/gemget/default.nix new file mode 100644 index 0000000..750e319 --- /dev/null +++ b/pkgs/gemget/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchFromGitHub, buildGoModule }: +with stdenv.lib; +let + pname = "gemget"; + version = "1.6.0"; +in +buildGoModule { + inherit pname version; + + src = fetchFromGitHub { + owner = "makeworld-the-better-one"; + repo = pname; + rev = "v${version}"; + sha256 = "1rwn7l56xv8pax40951wr4lkxqb9gg95xfa65h1imhncfch80anh"; + }; + + nativeBuildInputs = [ stdenv ]; + + vendorSha256 = "01xqslbifx2pkw82vxfnkd57gnn2957gxniqw0dy3338wcym0p07"; + + buildPhase = '' + make + ''; + + installPhase = '' + mkdir -p $out/bin + cp gemget $out/bin/gemget + ''; + + +} |