about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-11-14 11:02:32 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-11-14 11:02:32 +0100
commitb43c90240635baed62493c5c540638709e5fe21e (patch)
tree2a7529f042e55e727d62dec917c8dc8065ce980e /pkgs
parent2af256c5bebc920b8f25db6ddbae124f405ca4a3 (diff)
downloadpnpkgs-b43c90240635baed62493c5c540638709e5fe21e.tar.gz
pnpkgs-b43c90240635baed62493c5c540638709e5fe21e.zip
Add sfg
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/sfg/default.nix35
1 files changed, 35 insertions, 0 deletions
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;
+  };
+}