about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
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;
+  };
+}