libstemmer: tweak substitution

'./snowball' would also match 'STEMMING_DATA ?= ../snowball-data',
which doesn't seem appropriate.
This commit is contained in:
Stefan Frijters
2026-08-15 12:19:13 +02:00
parent e1f6c9220d
commit 50d9364ebe

View File

@@ -26,7 +26,7 @@ stdenv.mkDerivation (finalAttrs: {
''
+ lib.optionalString (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
substituteInPlace GNUmakefile \
--replace './snowball' '${lib.getBin buildPackages.libstemmer}/bin/snowball'
--replace-fail './snowball ' '${lib.getExe' buildPackages.libstemmer "snowball"} '
'';
makeTarget = "libstemmer.a";