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
Xournal: Darwin support #21400
Xournal: Darwin support #21400
Conversation
@@ -1,8 +1,10 @@ | |||
{ stdenv, fetchurl, makeDesktopItem | |||
{ stdenv, lib, fetchurl, makeDesktopItem |
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.
You can access lib using stdenv.lib
@@ -50,8 +54,8 @@ stdenv.mkDerivation rec { | |||
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.
You can use meta = with stdenv.lib; ...
to get the attributes like licenses into scope here.
e58ca1c
to
8cabbf7
Compare
Updated the style. @LnL7 is using |
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.
Good, but a bit of touch-up requested
@@ -2,7 +2,9 @@ | |||
, ghostscript, atk, gtk2, glib, fontconfig, freetype | |||
, libgnomecanvas, libgnomeprint, libgnomeprintui | |||
, pango, libX11, xproto, zlib, poppler | |||
, autoconf, automake, libtool, pkgconfig}: |
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.
Why was this changed? Seems like it's the same package list, but the end-bracket's on a different line.
platforms = stdenv.lib.platforms.linux; | ||
maintainers = [ maintainers.guibert ]; | ||
license = licenses.gpl2; | ||
platforms = platforms.linux ++ platforms.darwin; |
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.
This should be written as platforms = with platforms; [ linux darwin ];
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.
While nested lists should work on hydra, it's not considered to be a best practice.
Not really, but AFAIK |
These changes seem to build and run fine for me on NixOS. |
8cabbf7
to
2c277ef
Compare
Updated the style as requested - hope it's ready to go now 😄 |
platforms = stdenv.lib.platforms.linux; | ||
maintainers = [ maintainers.guibert ]; | ||
license = licenses.gpl2; | ||
platforms = with platforms; [ linux darwin ]; |
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.
Attributes in platforms are lists so this will result in nested lists: [ [ "i686-linux" ... ] [ "x86_64-darwin" ] ]
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.
LOL, got trapped by the other comments, I'll fix this back again
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.
Sorry for the confusion, my previous comment wasn't very clear.
2c277ef
to
8f85ff7
Compare
8f85ff7
to
febab15
Compare
Motivation for this change
This PR has two small changes:
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)