summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/htgen-cyberlocker/default.nix
blob: 515ea3cf9e01b570f7ff1e9fd6c06e42ad9eb78b (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>;
{ pkgs, stdenv }:
stdenv.mkDerivation rec {
  pname = "htgen-cyberlocker";
  version = "1.0.0";

  src = ./src;

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

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