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

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.util-linux
      ]}
      echo STATEDIR=${shell.escape "\${STATEDIR-$HOME}"}
      cat $src/htgen-cyberlocker
    )
  '';

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