summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/htgen-imgur/default.nix
blob: f429ff7a6d1c9a16ab87133d1317eee1cae787f1 (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
{ attr, coreutils, exiv2, findutils, gnugrep, jq, nix, stockholm, utillinux, stdenv }:
stdenv.mkDerivation rec {
  pname = "htgen-imgur";
  version = "1.0.0";

  src = ./src;

  buildPhase = ''
    (
      exec > htgen-imgur
      echo PATH=${stockholm.lib.makeBinPath [
        attr
        coreutils
        exiv2
        findutils
        gnugrep
        jq
        nix utillinux
      ]}
      echo STATEDIR=${stockholm.lib.shell.escape "\${STATEDIR-$HOME}"}
      cat $src/htgen-imgur
    )
  '';

  installPhase = ''
    install -D htgen-imgur $out/bin/htgen-imgur
  '';
}