bscpkgs/garlic/pp/hist/default.nix

26 lines
337 B
Nix
Raw Normal View History

2020-10-02 11:58:04 +02:00
{
stdenv
, ministat
}:
stdenv.mkDerivation {
name = "hist";
preferLocalBuild = true;
src = ./.;
dontBuild = true;
dontConfigure = true;
inherit ministat;
patchPhase = ''
substituteAllInPlace hist.sh
'';
installPhase = ''
mkdir -p $out/bin
cp hist.sh $out/bin/hist
chmod +x $out/bin/hist
'';
}