From b43c90240635baed62493c5c540638709e5fe21e Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sat, 14 Nov 2020 11:02:32 +0100 Subject: Add sfg --- pkgs/sfg/default.nix | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/sfg/default.nix (limited to 'pkgs/sfg') 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; + }; +} -- cgit 1.4.1