Merge pull request #274161 from afh/gnulib-subst-perl

gnulib: Fix path to perl in prefix-gnulib-mk
This commit is contained in:
Peder Bergebakken Sundt 2024-07-27 13:58:25 +02:00 committed by GitHub
commit 1f12de7a33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromSavannah, python3 }:
{ lib, stdenv, fetchFromSavannah, python3, perl }:
stdenv.mkDerivation rec {
pname = "gnulib";
@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
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 ];