diff options
-rw-r--r-- | default.nix | 1 | ||||
-rw-r--r-- | pkgs/sfg/default.nix | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/default.nix b/default.nix index 16d9402..c6f3da2 100644 --- a/default.nix +++ b/default.nix @@ -26,6 +26,7 @@ kaiosrt = pkgs.callPackage ./pkgs/kaiosrt { }; kaios-devenv = pkgs.callPackage ./pkgs/kaiosrt/devenv.nix { }; gurl = pkgs.callPackage ./pkgs/gurl { }; + sfg = pkgs.callPackage ./pkgs/sfg { }; st = pkgs.callPackage ./pkgs/larbs/st { }; dwm = pkgs.callPackage ./pkgs/larbs/dwm { }; diff --git a/pkgs/sfg/default.nix b/pkgs/sfg/default.nix new file mode 100644 index 0000000..b84581c --- /dev/null +++ b/pkgs/sfg/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchFromGitHub, buildGoModule }: +with stdenv.lib; + +let + pname = "sfg"; + version = "0.1"; +in +buildGoModule { + inherit pname version; + + src = fetchFromGitHub { + owner = "pniedzwiedzinski"; + repo = "simple-feed-gen"; + rev = "v${version}"; + sha256 = "0l7sgwg2aa4vdbz0zpx9n9zaxrh7mcm3xyagn01fbnpk9s9mmhh8"; + }; + + vendorSha256 = "1b3ra7p666vjnf7hm1pjm1y852i89jpzyf6j9id19js1133jqz3p"; + + buildPhase = '' + make + ''; + + installPhase = '' + mkdir -p $out/bin + cp sfg $out/bin + ''; + + meta = { + description = "Tool for generating basic atom feeds from .gmi files. And nothing more."; + homepage = "https://github.com/pniedzwiedzinski/simple-feed-gen"; + license = "MIT"; + platforms = platforms.linux; + }; +} |