nixpkgs/pkgs/tools/misc/zf/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1008 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, installShellFiles
, testers
, zig_0_10
2022-08-19 07:38:54 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
2022-08-19 07:38:54 +00:00
pname = "zf";
version = "0.8.0";
src = fetchFromGitHub {
owner = "natecraddock";
repo = "zf";
rev = "refs/tags/${finalAttrs.version}";
2022-08-19 07:38:54 +00:00
fetchSubmodules = true;
hash = "sha256-MzlSU5x2lb6PJZ/iNAi2aebfuClBprlfHMIG/4OPmuc=";
};
nativeBuildInputs = [
installShellFiles
zig_0_10.hook
];
2023-07-14 02:17:22 +00:00
doCheck = false; # it's failing somehow
postInstall = ''
installManPage doc/zf.1
installShellCompletion \
--bash complete/zf \
--fish complete/zf.fish \
--zsh complete/_zf
2022-08-19 07:38:54 +00:00
'';
passthru.tests.version = testers.testVersion { package = finalAttrs.zf; };
2022-08-19 07:38:54 +00:00
meta = {
2022-08-19 07:38:54 +00:00
homepage = "https://github.com/natecraddock/zf";
description = "A commandline fuzzy finder that prioritizes matches on filenames";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ dit7ya mmlb ];
2022-08-19 07:38:54 +00:00
};
})