-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
drawpile: 2.1.20 -> 2.2.1, cleanup #306734
Conversation
Hi! I've looked into why the Turs out that this happened because there is also a top-level |
Good point. Fixed. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/3935 |
@@ -105,7 +105,7 @@ in mkDerivation rec { | |||
|
|||
meta = { | |||
description = "A collaborative drawing program that allows multiple users to sketch on the same canvas simultaneously"; | |||
mainProgram = "drawpile-srv"; | |||
mainProgram = if buildClient then "drawpile" else if buildServer then "drawpile-srv" else null; |
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 am not sure if null is valid here
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.
Fixed
} // ( | ||
if buildClient then | ||
{ mainProgram = "drawpile"; } | ||
else if buildServer then | ||
{ mainProgram = "drawpile-srv"; } | ||
else {} | ||
); |
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.
} // ( | |
if buildClient then | |
{ mainProgram = "drawpile"; } | |
else if buildServer then | |
{ mainProgram = "drawpile-srv"; } | |
else {} | |
); | |
} // lib.optionalAttrs buildClient { | |
mainProgram = "drawpile"; | |
} // lib.optionalAttrs buildServer { | |
mainProgram = "drawpile-srv"; | |
}; |
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.
Nice! I flipped the unions to make it equivalent to my code (so drawpile has priority over drawpile-srv).
e90464c
to
e73b62f
Compare
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.
Looking neat
Description of changes
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.