diff options
-rw-r--r-- | default.nix | 1 | ||||
-rw-r--r-- | pkgs/gemget/default.nix | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/default.nix b/default.nix index d3e671d..67fb506 100644 --- a/default.nix +++ b/default.nix @@ -22,6 +22,7 @@ wywozik-todo = pkgs.callPackage ./pkgs/wywozik-todo { }; agate = pkgs.callPackage ./pkgs/agate { }; hyperion-rpi3 = pkgs.callPackage ./pkgs/hyperion-rpi3 { }; + gemget = pkgs.callPackage ./pkgs/gemget { }; st = pkgs.callPackage ./pkgs/larbs/st { }; dwm = pkgs.callPackage ./pkgs/larbs/dwm { }; 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 + ''; + + +} |