Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.0 KiB
Nix
51 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
perlPackages,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "triehash";
|
|
version = "0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "julian-klode";
|
|
repo = "triehash";
|
|
rev = "debian/0.3-3";
|
|
hash = "sha256-LxVcYj2WKHbhNu5x/DFkxQPOYrVkNvwiE/qcODq52Lc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
perlPackages.perl
|
|
];
|
|
|
|
postPatch = ''
|
|
patchShebangs triehash.pl
|
|
'';
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -d $out/bin $out/share/doc/triehash/ $out/share/triehash/
|
|
install triehash.pl $out/bin/triehash
|
|
install README.md $out/share/doc/triehash/
|
|
cp -r tests/ $out/share/triehash/tests/
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/julian-klode/triehash";
|
|
description = "Order-preserving minimal perfect hash function generator";
|
|
license = with licenses; mit;
|
|
maintainers = [ ];
|
|
platforms = perlPackages.perl.meta.platforms;
|
|
mainProgram = "triehash";
|
|
};
|
|
}
|