mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 20:03:24 +00:00
commit
a4245704e0
@ -3,27 +3,29 @@
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, testers
|
||||
, zig_0_10
|
||||
, zig_0_11
|
||||
, callPackage
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "zf";
|
||||
version = "0.8.0";
|
||||
version = "0.9.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "natecraddock";
|
||||
repo = "zf";
|
||||
rev = "refs/tags/${finalAttrs.version}";
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-MzlSU5x2lb6PJZ/iNAi2aebfuClBprlfHMIG/4OPmuc=";
|
||||
hash = "sha256-qzGr72EnWlGZgd7/r+8Iv+1i/Q9qvWpf/cgkr+TrgkE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
zig_0_10.hook
|
||||
zig_0_11.hook
|
||||
];
|
||||
|
||||
doCheck = false; # it's failing somehow
|
||||
postPatch = ''
|
||||
ln -s ${callPackage ./deps.nix { }} $ZIG_GLOBAL_CACHE_DIR/p
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
installManPage doc/zf.1
|
||||
@ -33,13 +35,14 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
--zsh complete/_zf
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion { package = finalAttrs.zf; };
|
||||
passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/natecraddock/zf";
|
||||
description = "A commandline fuzzy finder that prioritizes matches on filenames";
|
||||
changelog = "https://github.com/natecraddock/zf/releases/tag/${finalAttrs.version}";
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = with lib.maintainers; [ dit7ya mmlb ];
|
||||
maintainers = with lib.maintainers; [ dit7ya figsoda mmlb ];
|
||||
};
|
||||
})
|
||||
|
13
pkgs/tools/misc/zf/deps.nix
generated
Normal file
13
pkgs/tools/misc/zf/deps.nix
generated
Normal file
@ -0,0 +1,13 @@
|
||||
# generated by zon2nix (https://github.com/nix-community/zon2nix)
|
||||
|
||||
{ linkFarm, fetchzip }:
|
||||
|
||||
linkFarm "zig-packages" [
|
||||
{
|
||||
name = "1220dee955839b7f267c1bb21e0ee60888c08f408c30f0722b243cabcc8cce8b7508";
|
||||
path = fetchzip {
|
||||
url = "https://codeberg.org/dude_the_builder/ziglyph/archive/v0.11.1.tar.gz";
|
||||
hash = "sha256-tpl4RyCcukKWZehlZf6t2n41gYFDyL27t7+bzcxHP7g=";
|
||||
};
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user