From 3a884736fc21b9a7b3865ad4735eaf39dc853da6 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sun, 1 Nov 2020 00:00:57 +0100 Subject: Add gemget --- default.nix | 1 + pkgs/gemget/default.nix | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/gemget/default.nix 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 + ''; + + +} -- cgit 1.4.1