blob: 750e319bfc9975368d7d37cb77085a6a338a0323 (
plain)
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
|
{ 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
'';
}
|