summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/htgen-paste/default.nix
blob: 48b72833e0dfe9264df95ded60b0b9fd32d0af3b (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
{ pkgs, stockholm, stdenv }:
with stockholm.lib;

stdenv.mkDerivation rec {
  pname = "htgen-paste";
  version = "1.0.0";

  src = ./src;

  buildPhase = ''
    (
      exec > htgen-paste
      echo PATH=${makeBinPath [
        pkgs.nix
        pkgs.file
        pkgs.coreutils
        pkgs.findutils
      ]}
      echo STATEDIR=${shell.escape "\${STATEDIR-$HOME}"}
      cat $src/htgen-paste
    )
  '';

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