gnulib: cleanup, fix shebangs for python script
This commit is contained in:
parent
9e38b82d7c
commit
2f46ed8ef6
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchgit }:
|
{ lib, stdenv, fetchgit, python3 }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "gnulib";
|
pname = "gnulib";
|
||||||
|
@ -10,19 +10,26 @@ stdenv.mkDerivation {
|
||||||
sha256 = "0hkg3nql8nsll0vrqk4ifda0v4kpi67xz42r8daqsql6c4rciqnw";
|
sha256 = "0hkg3nql8nsll0vrqk4ifda0v4kpi67xz42r8daqsql6c4rciqnw";
|
||||||
};
|
};
|
||||||
|
|
||||||
dontFixup = true;
|
postPatch = ''
|
||||||
# no "make install", gnulib is a collection of source code
|
patchShebangs gnulib-tool.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ python3 ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out; mv * $out/
|
|
||||||
ln -s $out/lib $out/include
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
|
cp -r * $out/
|
||||||
|
ln -s $out/lib $out/include
|
||||||
ln -s $out/gnulib-tool $out/bin/
|
ln -s $out/gnulib-tool $out/bin/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
# do not change headers to not update all vendored build files
|
||||||
|
dontFixup = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
homepage = "https://www.gnu.org/software/gnulib/";
|
homepage = "https://www.gnu.org/software/gnulib/";
|
||||||
description = "Central location for code to be shared among GNU packages";
|
description = "Central location for code to be shared among GNU packages";
|
||||||
license = lib.licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
platforms = lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue