2021-02-17 17:02:09 +00:00
|
|
|
{ lib, stdenv, fetchgit, python3 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "gnulib";
|
|
|
|
version = "20200223";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.savannah.gnu.org/r/gnulib.git";
|
|
|
|
rev = "292fd5d6ff5ecce81ec3c648f353732a9ece83c0";
|
|
|
|
sha256 = "0hkg3nql8nsll0vrqk4ifda0v4kpi67xz42r8daqsql6c4rciqnw";
|
|
|
|
};
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs gnulib-tool.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ python3 ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2021-02-17 17:02:09 +00:00
|
|
|
cp -r * $out/
|
|
|
|
ln -s $out/lib $out/include
|
2020-04-24 23:36:52 +00:00
|
|
|
ln -s $out/gnulib-tool $out/bin/
|
|
|
|
'';
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
# do not change headers to not update all vendored build files
|
|
|
|
dontFixup = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.gnu.org/software/gnulib/";
|
|
|
|
description = "Central location for code to be shared among GNU packages";
|
2021-02-17 17:02:09 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|