New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
materia-theme: unset $name in install script #40409
Conversation
@@ -22,6 +22,7 @@ stdenv.mkDerivation rec { | |||
installPhase = '' | |||
patchShebangs install.sh | |||
sed -i install.sh \ | |||
-e "/^THEME_NAME=.*/a unset name" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A little bit less intrusive would be:
(
unset name # used internally by installation script
./install --dest $out/share/themes
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better yet:
name= ./install.sh --dest $out/share/themes
- install.sh uses a global environment variable called $name, if defined, to name the theme. This is an issue because nix sets this variable to the package name. - Replace gnome-themes-standard to gnome-themes-extra.
@GrahamcOfBorg build materia-theme |
Success on x86_64-linux (full log) Attempted: materia-theme Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: materia-theme Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: materia-theme Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: materia-theme Partial log (click to expand)
|
Is this also broken on stable? |
Success on aarch64-linux (full log) Attempted: materia-theme Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: materia-theme Partial log (click to expand)
|
The So it may be broken on stable too. |
Motivation for this change
install.sh
uses a global environment variable calledname
, if defined,to name the theme. This is an issue because nix sets this variable to
the package name.
Replace
gnome-themes-standard
withgnome-themes-extra
.Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)