git-latexdiff: use versionCheckHook; wrap it properly

Wrap it with coreutils & gnused for no errors in --help
This commit is contained in:
Doron Behar
2026-02-09 23:24:37 +02:00
parent 9f79fd7ec1
commit 8d25cd9fc9
+15 -5
View File
@@ -4,8 +4,10 @@
fetchFromGitLab,
installShellFiles,
asciidoc,
git,
bash,
makeBinaryWrapper,
coreutils,
gnused,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -30,17 +32,25 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
installShellFiles
asciidoc
makeBinaryWrapper
];
buildInputs = [
git
bash
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
dontBuild = true;
installPhase = ''
installBin git-latexdiff
wrapProgram ''${!outputBin}/bin/git-latexdiff \
--prefix PATH : ${
lib.makeBinPath [
coreutils
gnused
]
}
make git-latexdiff.1
installManPage git-latexdiff.1
'';