-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
openclonk: fix build #403871
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
Merged
Merged
openclonk: fix build #403871
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1173897
openclonk: cleanup
wolfgangwalther 3a2b296
openclonk: fix build
wolfgangwalther 04e1cd7
openclonk: unstable-2023-10-30 -> 9.0-unstable-2025-01-11
wolfgangwalther 9e83b2a
openclonk: remove cmakeFlags for gcc-unwrapped
wolfgangwalther ed76a25
openclonk: modernize
wolfgangwalther 0022de8
openclonk: fix license
wolfgangwalther 18abb04
openclonk: adopt
wolfgangwalther File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,44 +1,53 @@ | ||
| { | ||
| lib, | ||
| stdenv, | ||
|
|
||
| # sources | ||
| fetchurl, | ||
| fetchFromGitHub, | ||
| fetchDebianPatch, | ||
|
|
||
| # nativeBuildInputs | ||
| cmake, | ||
| ninja, | ||
| pkg-config, | ||
| SDL2, | ||
| libvorbis, | ||
| libogg, | ||
| libjpeg, | ||
| libpng, | ||
|
|
||
| # buildInputs | ||
| curl, | ||
| freealut, | ||
| freetype, | ||
| glew, | ||
| tinyxml, | ||
| openal, | ||
| libb2, | ||
| libepoxy, | ||
| curl, | ||
| freealut, | ||
| libjpeg, | ||
| libogg, | ||
| libpng, | ||
| libvorbis, | ||
| libXrandr, | ||
| openal, | ||
| readline, | ||
| libb2, | ||
| gcc-unwrapped, | ||
| enableSoundtrack ? false, # Enable the "Open Clonk Soundtrack - Explorers Journey" by David Oerther | ||
| SDL2, | ||
| tinyxml, | ||
|
|
||
| # Enable the "Open Clonk Soundtrack - Explorers Journey" by David Oerther | ||
| enableSoundtrack ? false, | ||
| }: | ||
|
|
||
| let | ||
| soundtrack_src = fetchurl { | ||
| url = "http://www.openclonk.org/download/Music.ocg"; | ||
| sha256 = "1ckj0dlpp5zsnkbb5qxxfxpkiq76jj2fgj91fyf3ll7n0gbwcgw5"; | ||
| hash = "sha256-Mye6pl1eSgEQ/vOLfDsdHDjp2ljb3euGKBr7s36+2W4="; | ||
| }; | ||
| in | ||
| stdenv.mkDerivation { | ||
| version = "unstable-2023-10-30"; | ||
| version = "9.0-unstable-2025-01-11"; | ||
| pname = "openclonk"; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "openclonk"; | ||
| repo = "openclonk"; | ||
| rev = "5275334a11ef7c23ce809f35d6b443abd91b415f"; | ||
| sha256 = "14x5b2rh739156l4072rbsnv9n862jz1zafi6ng158ja5fwl16l2"; | ||
| rev = "db975b4a887883f4413d1ce3181f303d83ee0ab5"; | ||
| hash = "sha256-Vt7umsfe2TVZAeKJOXCi2ZCbSv6wAotuMflS7ii7Y/E="; | ||
| }; | ||
|
|
||
| patches = [ | ||
|
|
@@ -51,52 +60,47 @@ stdenv.mkDerivation { | |
| }) | ||
| ]; | ||
|
|
||
| enableParallelInstalling = false; | ||
|
|
||
| postInstall = | ||
| '''' | ||
| '' | ||
| mv $out/games/openclonk $out/bin | ||
| rm -r $out/games | ||
| '' | ||
| + lib.optionalString enableSoundtrack '' | ||
wolfgangwalther marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ln -sv ${soundtrack_src} $out/share/games/openclonk/Music.ocg | ||
| ''; | ||
|
|
||
| nativeBuildInputs = [ | ||
| cmake | ||
| ninja | ||
| pkg-config | ||
| ]; | ||
|
|
||
| buildInputs = [ | ||
| SDL2 | ||
| libvorbis | ||
| libogg | ||
| libjpeg | ||
| libpng | ||
| curl | ||
| freealut | ||
| freetype | ||
| glew | ||
| tinyxml | ||
| openal | ||
| freealut | ||
| libb2 | ||
| libepoxy | ||
| curl | ||
| libjpeg | ||
| libogg | ||
| libpng | ||
| libvorbis | ||
| libXrandr | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of adding libXrandr here, #403479 could possibly fix it as well.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will still wait for #403479 and then see what that does for us. |
||
| openal | ||
| readline | ||
| libb2 | ||
| ]; | ||
|
|
||
| cmakeFlags = [ | ||
| "-DCMAKE_AR=${gcc-unwrapped}/bin/gcc-ar" | ||
| "-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib" | ||
| SDL2 | ||
| tinyxml | ||
| ]; | ||
|
|
||
| cmakeBuildType = "RelWithDebInfo"; | ||
|
|
||
| meta = with lib; { | ||
| meta = { | ||
| description = "Free multiplayer action game in which you control clonks, small but witty and nimble humanoid beings"; | ||
| homepage = "https://www.openclonk.org"; | ||
| license = if enableSoundtrack then licenses.unfreeRedistributable else licenses.isc; | ||
| license = with lib.licenses; [ isc ] ++ lib.optional enableSoundtrack unfreeRedistributable; | ||
| mainProgram = "openclonk"; | ||
| maintainers = [ ]; | ||
| platforms = [ | ||
| "x86_64-linux" | ||
| "i686-linux" | ||
| ]; | ||
| maintainers = with lib.maintainers; [ wolfgangwalther ]; | ||
| platforms = lib.platforms.linux; | ||
| }; | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.