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

  src = ./src;

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

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