forked from rarias/bscpkgs
Add postprocessing hist tool
This commit is contained in:
25
garlic/postprocess/hist/default.nix
Normal file
25
garlic/postprocess/hist/default.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user