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

28 lines
483 B
Nix
Raw Normal View History

2023-04-28 21:11:21 +00:00
{ 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
'';
}