Merge pull request #74052 from Ninlives/master
glava: fix glava wants to load shaders from /etc/xdg/glava
This commit is contained in:
commit
f718f55bb6
@ -8,7 +8,7 @@ let
|
|||||||
wrapperScript = writeScript "glava" ''
|
wrapperScript = writeScript "glava" ''
|
||||||
#!${runtimeShell}
|
#!${runtimeShell}
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--copy-config)
|
--copy-config|-C)
|
||||||
# The binary would symlink it, which won't work in Nix because the
|
# The binary would symlink it, which won't work in Nix because the
|
||||||
# garbage collector will eventually remove the original files after
|
# garbage collector will eventually remove the original files after
|
||||||
# updates
|
# updates
|
||||||
@ -45,6 +45,14 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
|
for f in $(find -type f);do
|
||||||
|
substituteInPlace $f \
|
||||||
|
--replace /etc/xdg $out/etc/xdg
|
||||||
|
done
|
||||||
|
|
||||||
|
substituteInPlace Makefile \
|
||||||
|
--replace '$(DESTDIR)$(SHADERDIR)' '$(SHADERDIR)'
|
||||||
|
|
||||||
substituteInPlace Makefile \
|
substituteInPlace Makefile \
|
||||||
--replace 'unknown' 'v${version}'
|
--replace 'unknown' 'v${version}'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user