Files
nixpkgs/pkgs/by-name/gn/gnulib/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

46 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchgit,
python3,
perl,
}:
stdenv.mkDerivation {
pname = "gnulib";
version = "20241001";
src = fetchgit {
url = "https://git.savannah.gnu.org/git/gnulib.git";
rev = "0a01f6737dc5666c730bdfe6a038da53a4156cc2";
hash = "sha256-kbmXnXXoaTPGwjUJvnHWCQFS2KGQ9fsjIyloNmkKdc4=";
};
postPatch = ''
patchShebangs gnulib-tool.py
substituteInPlace build-aux/{prefix-gnulib-mk,useless-if-before-free,update-copyright,gitlog-to-changelog,announce-gen} \
--replace-fail 'exec perl' 'exec ${lib.getExe perl}'
'';
buildInputs = [ python3 ];
installPhase = ''
mkdir -p $out/bin
cp -r * $out/
ln -s $out/lib $out/include
ln -s $out/gnulib-tool $out/bin/
'';
# do not change headers to not update all vendored build files
dontFixup = true;
meta = with lib; {
description = "Central location for code to be shared among GNU packages";
homepage = "https://www.gnu.org/software/gnulib/";
changelog = "https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=ChangeLog";
license = licenses.gpl3Plus;
mainProgram = "gnulib-tool";
platforms = platforms.unix;
};
}