mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
analog: Fix substitution so it can find its language files (#133540)
This commit is contained in:
parent
53d333a68f
commit
faf57c8e3a
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
|
||||
postPatch = ''
|
||||
sed -i src/anlghead.h \
|
||||
-e "s|#define DEFAULTCONFIGFILE .*|#define DEFAULTCONFIGFILE \"$out/etc/analog.cfg\"|g" \
|
||||
-e "s|#define LANGDIR .*|#define LANGDIR \"$out/share/$pname}/lang/\"|g"
|
||||
-e "s|#define LANGDIR .*|#define LANGDIR \"$out/share/${pname}/lang/\"|g"
|
||||
substituteInPlace src/Makefile --replace "gcc" "${stdenv.cc.targetPrefix}cc"
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user