zf: init at 0.8.0

This commit is contained in:
Mostly Void 2022-08-19 13:08:54 +05:30 committed by Anderson Torres
parent 3386631c48
commit 1fdbbc364a
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,44 @@
{
lib,
stdenv,
fetchFromGitHub,
zig,
testers,
zf,
}:
stdenv.mkDerivation rec {
pname = "zf";
version = "0.8.0";
src = fetchFromGitHub {
owner = "natecraddock";
repo = pname;
rev = "refs/tags/${version}";
fetchSubmodules = true;
hash = "sha256-MzlSU5x2lb6PJZ/iNAi2aebfuClBprlfHMIG/4OPmuc=";
};
nativeBuildInputs = [ zig ];
dontConfigure = true;
preBuild = ''
export HOME=$TMPDIR
'';
installPhase = ''
runHook preInstall
zig build -Drelease-safe -Dcpu=baseline --prefix $out install
runHook postInstall
'';
passthru.tests.version = testers.testVersion {package = zf;};
meta = with lib; {
homepage = "https://github.com/natecraddock/zf";
description = "A commandline fuzzy finder that prioritizes matches on filenames";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ dit7ya mmlb ];
};
}

View File

@ -39668,4 +39668,6 @@ with pkgs;
udict = callPackage ../applications/misc/udict { };
duden = callPackage ../applications/misc/duden { };
zf = callPackage ../tools/misc/zf { };
}