-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Add presentation app Spice Up #34546
Conversation
Upstream has moved to GitHub, as the elementary.io page [1] now links to the GitHub repository. The only current dependant derivation is Pantheon Terminal (pantheon.pantheon-terminal), which continues to work. [1]: https://elementary.io/open-source
, intltool | ||
, autoreconfHook | ||
, pkgconfig | ||
, libqalculate |
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.
¿Qué?
patches = [ ./0001-Remove-environment-dependant-CMake-configuration.patch ]; | ||
|
||
# Add extra packages to the VAPI path | ||
# There is no environment variable, so we must edit the CMakeLists.txt |
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.
Does not XDG_DATA_DIRS
work?
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.
yes, it does. I totally forgot that nix-build removes the environment variables
}; | ||
|
||
cmakeFlags = "-DINTROSPECTION_GIRDIR=share/gir-1.0/ -DINTROSPECTION_TYPELIBDIR=lib/girepository-1.0"; |
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.
Could you also please change this into an array, when at it.
gnome3.gnome_themes_standard | ||
]; | ||
|
||
enableParallelBuilding = true; |
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.
CMake builds in parallel by default: #32271
|
||
enableParallelBuilding = true; | ||
|
||
meta = with stdenv.lib; { |
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.
Missing license.
Date: Sat, 3 Feb 2018 13:16:16 +1100 | ||
Subject: [PATCH] Remove environment dependant CMake configuration | ||
|
||
This is broken by Nix's CMake patching scripts |
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.
Do you have a reference for this? In the setup hook, I only see a borked path replacer.
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.
yeah sorry that was bullshit
''; | ||
|
||
nativeBuildInputs = [ | ||
intltool |
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.
gettext
should be enough.
done | ||
''; | ||
|
||
nativeBuildInputs = [ |
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.
XMLLINT not set and xmllint not found in path; skipping xml preprocessing.
adding libxml2
would be nice.
buildInputs = [perl cmake vala gobjectIntrospection glib gtk3 gnome3.libgee gettext]; | ||
nativeBuildInputs = [ vala pkgconfig cmake perl ]; | ||
buildInputs = [ gobjectIntrospection glib gtk3 gnome3.libgee gettext ]; | ||
|
||
meta = { |
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 also add with stdenv.lib to clean it up a little.
nativeBuildInputs = [ pkgconfig ]; | ||
buildInputs = [perl cmake vala gobjectIntrospection glib gtk3 gnome3.libgee gettext]; | ||
nativeBuildInputs = [ vala pkgconfig cmake perl ]; | ||
buildInputs = [ gobjectIntrospection glib gtk3 gnome3.libgee gettext ]; |
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.
gettext
and gobjectIntrospection
are only needed during build.
pkgconfig | ||
wrapGAppsHook | ||
vala | ||
cmake |
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.
cmake
should be used along with ninja
for faster builds.
b0138cb
to
6c53aa2
Compare
Thanks for the review @jtojnar - I've force-pushed an update |
6c53aa2
to
21665de
Compare
nativeBuildInputs = [ | ||
vala | ||
pkgconfig | ||
cmake |
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.
Ninja here as well.
Date: Sat, 3 Feb 2018 13:16:16 +1100 | ||
Subject: [PATCH] Remove environment dependant CMake configuration | ||
|
||
This is broken as nix unsets the $USER environment variable |
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.
Would setting the variable fix this? We should also set patch upstream, would quoting the variables work?
|
||
# Add extra packages to the VAPI path | ||
# There is no environment variable, so we must edit the CMakeLists.txt | ||
postPatch = '' |
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.
No longer necessary?
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.
Err, so when testing without removing the postPatch, it is broken.
So vala uses the this function to lookup vapis in the path. It calls g_get_system_data_dirs ()
. That uses XDG spec:
$XDG_DATA_DIRS defines the preference-ordered set of base directories to search for data files in addition to the $XDG_DATA_HOME base directory. The directories in $XDG_DATA_DIRS should be **seperated with a colon ':'. **
So it was just broken because of a colon (whereas nix seems to default to space separated).
* move build time dependencies into nativeBuildInputs * convert cmakeFlags to an array * use `with` in the meta section * add `ninja`
21665de
to
8a7fd9d
Compare
@jtojnar thanks for the review again... this should fix your review issues. But it seems to break the icons; I'm not sure if that is inherited from my system environment or if that is an issue with the package. |
Some icons (e.g. LGTM otherwise. |
Motivation for this change
Spice Up is a nice presentations app: https://medium.com/elementaryos/appcenter-spotlight-spice-up-65b7c169b3bd
It required also updating the dependency
granite
derivation. The only other user of granite ispantheon.pantheon-terminal
, which was also tested.Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)