diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-11-14 11:02:32 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-11-14 11:02:32 +0100 |
commit | b43c90240635baed62493c5c540638709e5fe21e (patch) | |
tree | 2a7529f042e55e727d62dec917c8dc8065ce980e | |
parent | 2af256c5bebc920b8f25db6ddbae124f405ca4a3 (diff) | |
download | pnpkgs-b43c90240635baed62493c5c540638709e5fe21e.tar.gz pnpkgs-b43c90240635baed62493c5c540638709e5fe21e.zip |
Add sfg
-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; + }; +} |