stockholm/krebs/5pkgs/simple/htgen-cyberlocker/default.nix

31 lines
573 B
Nix
Raw Normal View History

2021-10-12 17:36:09 +00:00
{ pkgs, stockholm, stdenv }:
with stockholm.lib;
2021-08-25 10:04:38 +00:00
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
'';
}