Add postprocessing hist tool

This commit is contained in:
2020-10-02 11:58:04 +02:00
parent fd47044bfb
commit 61a2db03dc
3 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
{
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
'';
}