mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
zf: init at 0.8.0
This commit is contained in:
parent
3386631c48
commit
1fdbbc364a
44
pkgs/tools/misc/zf/default.nix
Normal file
44
pkgs/tools/misc/zf/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -39668,4 +39668,6 @@ with pkgs;
|
||||
udict = callPackage ../applications/misc/udict { };
|
||||
|
||||
duden = callPackage ../applications/misc/duden { };
|
||||
|
||||
zf = callPackage ../tools/misc/zf { };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user