lol

gnulib: cleanup, fix shebangs for python script

+15 -8
+15 -8
pkgs/development/tools/gnulib/default.nix
··· 1 - { lib, stdenv, fetchgit }: 1 + { lib, stdenv, fetchgit, python3 }: 2 2 3 3 stdenv.mkDerivation { 4 4 pname = "gnulib"; ··· 10 10 sha256 = "0hkg3nql8nsll0vrqk4ifda0v4kpi67xz42r8daqsql6c4rciqnw"; 11 11 }; 12 12 13 - dontFixup = true; 14 - # no "make install", gnulib is a collection of source code 13 + postPatch = '' 14 + patchShebangs gnulib-tool.py 15 + ''; 16 + 17 + buildInputs = [ python3 ]; 18 + 15 19 installPhase = '' 16 - mkdir -p $out; mv * $out/ 20 + mkdir -p $out/bin 21 + cp -r * $out/ 17 22 ln -s $out/lib $out/include 18 - mkdir -p $out/bin 19 23 ln -s $out/gnulib-tool $out/bin/ 20 24 ''; 21 25 22 - meta = { 26 + # do not change headers to not update all vendored build files 27 + dontFixup = true; 28 + 29 + meta = with lib; { 23 30 homepage = "https://www.gnu.org/software/gnulib/"; 24 31 description = "Central location for code to be shared among GNU packages"; 25 - license = lib.licenses.gpl3Plus; 26 - platforms = lib.platforms.unix; 32 + license = licenses.gpl3Plus; 33 + platforms = platforms.unix; 27 34 }; 28 35 }