1 { lib, stdenv, fetchFromSavannah, python3 }:
3 stdenv.mkDerivation rec {
7 src = fetchFromSavannah {
9 rev = "2dd1a7984c6b3e6056cef7e3f9933e0039c21634";
10 hash = "sha256-QtWf3mljEnr0TTogkoKN63Y5HTm14A2e/sIXX3xe2SE=";
14 patchShebangs gnulib-tool.py
17 buildInputs = [ python3 ];
22 ln -s $out/lib $out/include
23 ln -s $out/gnulib-tool $out/bin/
26 # do not change headers to not update all vendored build files
30 # This patch is used by multiple other packages (currently:
31 # gnused, gettext) which contain vendored copies of gnulib.
32 # Without it, compilation will fail with error messages about
33 # "__LDBL_REDIR1_DECL" or similar on platforms with longdouble
34 # redirects (currently powerpc64). Once all of those other
35 # packages make a release with a newer gnulib we can drop this
37 longdouble-redirect-patch = ./gnulib-longdouble-redirect.patch;
41 description = "Central location for code to be shared among GNU packages";
42 homepage = "https://www.gnu.org/software/gnulib/";
43 changelog = "https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=ChangeLog";
44 license = licenses.gpl3Plus;
45 mainProgram = "gnulib-tool";
46 platforms = platforms.unix;