Skip to content
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

assaultcube: init at official master branch , rev = "9f537b0876a39d7686e773040469fbb1417de18b" #34623

Merged
merged 6 commits into from Feb 5, 2018

Conversation

bignaux
Copy link
Contributor

@bignaux bignaux commented Feb 5, 2018

Motivation for this change

fun first-person-shooter, need to build on git since latest official release is out of date (2013) ...

Things done

Tested only on my non-nixos OS (gentoo ~amd64) . I've (so common) gl issues , but this old good games since to work well.

@@ -0,0 +1,80 @@
{ fetchgit, stdenv, makeDesktopItem, curl, enet, openal, pkgconfig, libogg,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curl and SDL_mixer are never used, as far as I can see.

stdenv.mkDerivation rec {

# master branch has legacy (1.2.0.2) protocol 1201 and gcc 6 fix.
branch = "master";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we have some sort of version attribute here, appended to name? Perhaps just the date of the commit in question.

};

#sadless , fetchgit seems to refetch all stuff when man switch branch .
src = fetchgit {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think fetchFromGitHub would be preferable here.

url = "https://github.com/assaultcube/AC.git";
rev = "9f537b0876a39d7686e773040469fbb1417de18b";
branchName = "${branch}";
#sha256 = "";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a hash!

@srhb
Copy link
Contributor

srhb commented Feb 5, 2018

@GrahamcOfBorg build assaultcube

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

Package ‘enet-1.3.13’ in /private/var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/pkgs/development/libraries/enet/default.nix:13 is not supported on ‘x86_64-darwin’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/mk02swyblq43wy6lx8yvdh0n1b6zvcz4-assaultcube
shrinking /nix/store/mk02swyblq43wy6lx8yvdh0n1b6zvcz4-assaultcube/bin/ac_server
shrinking /nix/store/mk02swyblq43wy6lx8yvdh0n1b6zvcz4-assaultcube/bin/ac_client
strip is /nix/store/5qj61lcvzlap87rf6blvf8p577d482bv-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/mk02swyblq43wy6lx8yvdh0n1b6zvcz4-assaultcube/bin 
patching script interpreter paths in /nix/store/mk02swyblq43wy6lx8yvdh0n1b6zvcz4-assaultcube
checking for references to /tmp/nix-build-assaultcube.drv-0 in /nix/store/mk02swyblq43wy6lx8yvdh0n1b6zvcz4-assaultcube...
/nix/store/mk02swyblq43wy6lx8yvdh0n1b6zvcz4-assaultcube

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/b8bkwf6l68310m40z23lii0v1iap2iar-assaultcube
shrinking /nix/store/b8bkwf6l68310m40z23lii0v1iap2iar-assaultcube/bin/ac_server
shrinking /nix/store/b8bkwf6l68310m40z23lii0v1iap2iar-assaultcube/bin/ac_client
strip is /nix/store/xmpjypwjmp2qi1chs5kr0hacnh161ls4-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/b8bkwf6l68310m40z23lii0v1iap2iar-assaultcube/bin
patching script interpreter paths in /nix/store/b8bkwf6l68310m40z23lii0v1iap2iar-assaultcube
checking for references to /build in /nix/store/b8bkwf6l68310m40z23lii0v1iap2iar-assaultcube...
/nix/store/b8bkwf6l68310m40z23lii0v1iap2iar-assaultcube

@srhb
Copy link
Contributor

srhb commented Feb 5, 2018

@GrahamcOfBorg build assaultcube

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

clang++ -O3 -fomit-frame-pointer -Wall -fsigned-char -DSTANDALONE -I. -Ibot -I../enet/include -c -o stream-standalone.o stream.cpp
clang++ -O3 -fomit-frame-pointer -Wall -fsigned-char -DSTANDALONE -I. -Ibot -I../enet/include -c -o tools-standalone.o tools.cpp
tools.cpp:800:14: fatal error: 'SDL_timer.h' file not found
    #include "SDL_timer.h"
             ^~~~~~~~~~~~~
1 error generated.
make: *** [Makefile:172: tools-standalone.o] Error 1
make: Leaving directory '/private/tmp/nix-build-assaultcube-01052017.drv-0/source/source/src'
builder for '/nix/store/yxqkdfbinqfcmqpd2prvpbv7qi6ffv3d-assaultcube-01052017.drv' failed with exit code 2
error: build of '/nix/store/yxqkdfbinqfcmqpd2prvpbv7qi6ffv3d-assaultcube-01052017.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/vdwhrqr019dzvg6zwzb251rf40gdl429-assaultcube-01052017
shrinking /nix/store/vdwhrqr019dzvg6zwzb251rf40gdl429-assaultcube-01052017/bin/ac_server
shrinking /nix/store/vdwhrqr019dzvg6zwzb251rf40gdl429-assaultcube-01052017/bin/ac_client
strip is /nix/store/5qj61lcvzlap87rf6blvf8p577d482bv-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/vdwhrqr019dzvg6zwzb251rf40gdl429-assaultcube-01052017/bin 
patching script interpreter paths in /nix/store/vdwhrqr019dzvg6zwzb251rf40gdl429-assaultcube-01052017
checking for references to /tmp/nix-build-assaultcube-01052017.drv-0 in /nix/store/vdwhrqr019dzvg6zwzb251rf40gdl429-assaultcube-01052017...
/nix/store/vdwhrqr019dzvg6zwzb251rf40gdl429-assaultcube-01052017

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/28vk6nryy60m998l2fk5hkm6p9knlk41-assaultcube-01052017
shrinking /nix/store/28vk6nryy60m998l2fk5hkm6p9knlk41-assaultcube-01052017/bin/ac_server
shrinking /nix/store/28vk6nryy60m998l2fk5hkm6p9knlk41-assaultcube-01052017/bin/ac_client
strip is /nix/store/xmpjypwjmp2qi1chs5kr0hacnh161ls4-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/28vk6nryy60m998l2fk5hkm6p9knlk41-assaultcube-01052017/bin
patching script interpreter paths in /nix/store/28vk6nryy60m998l2fk5hkm6p9knlk41-assaultcube-01052017
checking for references to /build in /nix/store/28vk6nryy60m998l2fk5hkm6p9knlk41-assaultcube-01052017...
/nix/store/28vk6nryy60m998l2fk5hkm6p9knlk41-assaultcube-01052017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants