ferm: Fix import-ferm error importing ferm wrapped script instead of perlFile (#310626)

Co-authored-by: Antoine 'Toinux' Lesieur <toinux@laptaupe.local>
This commit is contained in:
toinux 2024-05-11 18:00:43 +02:00 committed by GitHub
parent f7713016d9
commit 50f296c0af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 0 deletions

View File

@ -11,6 +11,10 @@ in stdenv.mkDerivation rec {
sha256 = "sha256-wA2RDVOU5pZ1YI617g9QTVz9pB6ZCi2akbqsbfk+P5I=";
};
patches = [
./import-ferm-wrapped.patch
];
# perl is used at build time to gather the ferm version.
nativeBuildInputs = [ makeWrapper perl ];
buildInputs = [ perl ];

View File

@ -0,0 +1,14 @@
--- old/src/import-ferm
+++ new/src/import-ferm
@@ -42,9 +42,9 @@
# find the main "ferm" program
my $ferm;
if ($0 =~ /^(.*)\//) {
- $ferm = "$1/ferm";
+ $ferm = "$1/.ferm-wrapped";
} else {
- $ferm = 'ferm';
+ $ferm = '.ferm-wrapped';
}
# Perl 5.24 requires this prefix or else it will only look in @INC