-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
colobot: init at 0.1.12-alpha #85419
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
Conversation
colobot: remove vorbisTools argument colobot: reduce scope of `colobotMusic` colobot: use cmake flag instead of using sed colobot: clean up regex
I marked this as stale due to inactivity. → More info |
merge commits adding you to maintainers into a single commit with a message "maintainers: add wesnel", and other commits for adding colobot package into single commit with a commit message "colobot: init at 0.1.12" |
|
||
colobot = callPackage ../games/colobot { }; |
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.
colobot = callPackage ../games/colobot { }; | |
colobot = callPackage ../games/colobot { }; |
tar -xvf ${colobotMusic} -Cdata/music | ||
''; | ||
|
||
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.
meta = with stdenv.lib; { | |
meta = with lib; { |
stdenv.lib is deprecated.
sed -i 's/find_program(WGET wget)//' \ | ||
data/music/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.
Please use substituteInPlace.
url = | ||
"https://colobot.info/files/music/colobot-music_ogg_${version}.tar.gz"; |
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.
url = | |
"https://colobot.info/files/music/colobot-music_ogg_${version}.tar.gz"; | |
url = "https://colobot.info/files/music/colobot-music_ogg_${version}.tar.gz"; |
cmakeFlags = [ "-DCOLOBOT_INSTALL_BIN_DIR=${placeholder "out"}/bin" ]; | ||
|
||
postPatch = let | ||
colobotMusic = fetchurl { |
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.
Please move that into a let in before mkDerivation.
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.
IMHO using narrower scopes is better.
gettext | ||
librsvg | ||
perl | ||
python27 |
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.
Can we use python3?
I marked this as stale due to inactivity. → More info |
PR #103077 added the same package. |
Motivation for this change
I've added a derivation for Colobot, a GPL-licensed educational programming game. Thanks for looking!
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)