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
arc-theme: 2017-05-12 -> 2018-07-13 #43490
Conversation
buildInputs = [ gnome3.gtk ]; | ||
preBuild = '' | ||
# Shut up inkscape's warnings | ||
export HOME="$NIX_BUILD_ROOT" |
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.
What warning?
|
||
preferLocalBuild = true; | ||
propagatedUserEnvPkgs = [ gnome-themes-standard gtk-engine-murrine ]; |
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.
I just learned about propagatedUserEnvPkgs
today, but there seems to be a movement to deprecate it: #43049. Although currently this is how all packages use gtk-engine-murrine
, and it seems like it's needed for those, because the result isn't a binary you can just wrap.
I can't remember the exact message but the gist was that inkscape couldn't
create it's config or log directory, and it was spitting out that warning
every time render-assets.sh was called. I can put this in a wrapper. I will
have a look
|
pkgs/misc/themes/arc/default.nix
Outdated
# treat versions newer than 3.22 as 3.22 | ||
gnomeVersion = if stdenv.lib.versionOlder "3.22" gnome3.version then "3.22" else gnome3.version; | ||
# per README: For GNOME 3.24 and 3.26, use --with-gnome=3.22 | ||
gnomeVersion = if gnome3.version == "3.24" || gnome3.version == "3.26" then "3.22" else gnome3.version; |
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.
Maybe it is better to rely on the automatic detection of the gnome version provided by the package itself. Reading its code reveals it is in fact based on the gtk+ version, obtained with the help of pkg-config (pkg-config --modversion gtk+-3.0
). It seems that in future release this will be changed.
So I suggest to remove those explicit handling of the gnome version.
pkgs/misc/themes/arc/default.nix
Outdated
pname = "arc-theme"; | ||
in | ||
|
||
stdenv.mkDerivation rec { | ||
name = "${pname}-${version}"; | ||
version = "2017-05-12"; | ||
version = "2018-07-13"; |
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.
It may be better to use a released version, instead of a simple revision. The latest released version is 20180715
, only two days after the revision used in the PR.
pkgs/misc/themes/arc/default.nix
Outdated
install -Dm644 -t $out/share/doc/${pname} AUTHORS *.md | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "A flat theme with transparent elements for GTK 3, GTK 2 and Gnome-Shell"; | ||
homepage = https://github.com/horst3180/arc-theme; | ||
description = "[New upstream] A flat theme with transparent elements"; |
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.
Maybe it is better not to change the description. [New upstream]
may not be clear enough to convey the fact that we are using a fork of the now unmaintained package.
9493ca7
to
380d404
Compare
@romildo I agree with all your comments and made those changes. |
@xeji Maybe you can take a look at this PR and merge it into master. It is becoming old. |
@GrahamcOfBorg build arc-theme |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: arc-theme Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: arc-theme Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: arc-theme Partial log (click to expand)
|
@xeji thanks. |
seconded! |
Motivation for this change
The horst3180 repo was unmaintained - this is the updated version as per this comment.
Updated build dependencies. Plank theme is installed automatically now, and there is no chrome theme
Still learning nix so criticism is welcome!
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)