about summary refs log tree commit diff
path: root/pkgs/sfg/default.nix
blob: b84581c15a63516b103d211d71c1dd458da70fe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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;
  };
}