blob: c7d7ebfd8b9150661a455c4b85377194876d711e (
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.utillinux
]}
echo STATEDIR=${shell.escape "\${STATEDIR-$HOME}"}
cat $src/htgen-cyberlocker
)
'';
installPhase = ''
install -D htgen-cyberlocker $out/bin/htgen-cyberlocker
'';
}
|