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

caprice32 : init at unstable-2018-02-10 #35008

Merged
merged 4 commits into from
Mar 4, 2018
Merged

Conversation

bignaux
Copy link
Contributor

@bignaux bignaux commented Feb 15, 2018

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@bignaux bignaux changed the title caprice32 : init at 20170210-53de695 caprice32 : init at 20180210-53de695 Feb 15, 2018
src = fetchFromGitHub {
owner = "ColinPitrat";
repo = "caprice32";
rev = "${rev}";
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: you can do inherit rev here, or at least do rev = rev ...

@joachifm
Copy link
Contributor

@GrahamcOfBorg build caprice32

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

Package ‘caprice32-20180210-53de695’ in /private/var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/pkgs/misc/emulators/caprice32/default.nix:21 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)

cp -r resources rom /nix/store/rx3h3j2g03yf2b6jyx4b26dg7vaijyb6-caprice32-20180210-53de695//share/caprice32
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/rx3h3j2g03yf2b6jyx4b26dg7vaijyb6-caprice32-20180210-53de695
shrinking /nix/store/rx3h3j2g03yf2b6jyx4b26dg7vaijyb6-caprice32-20180210-53de695/bin/cap32
gzipping man pages under /nix/store/rx3h3j2g03yf2b6jyx4b26dg7vaijyb6-caprice32-20180210-53de695/share/man/
strip is /nix/store/adidfx4pa7vmvby0gjqqmiwg2x49yr27-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/rx3h3j2g03yf2b6jyx4b26dg7vaijyb6-caprice32-20180210-53de695/bin
patching script interpreter paths in /nix/store/rx3h3j2g03yf2b6jyx4b26dg7vaijyb6-caprice32-20180210-53de695
checking for references to /build in /nix/store/rx3h3j2g03yf2b6jyx4b26dg7vaijyb6-caprice32-20180210-53de695...
/nix/store/rx3h3j2g03yf2b6jyx4b26dg7vaijyb6-caprice32-20180210-53de695

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

cp -r resources rom /nix/store/qpinmdv5ih2vac0bp4hl9ic0lhkba2bb-caprice32-20180210-53de695//share/caprice32
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/qpinmdv5ih2vac0bp4hl9ic0lhkba2bb-caprice32-20180210-53de695
shrinking /nix/store/qpinmdv5ih2vac0bp4hl9ic0lhkba2bb-caprice32-20180210-53de695/bin/cap32
gzipping man pages under /nix/store/qpinmdv5ih2vac0bp4hl9ic0lhkba2bb-caprice32-20180210-53de695/share/man/
strip is /nix/store/skd6ix5ipkyhxzq7naylj4digawakl4j-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/qpinmdv5ih2vac0bp4hl9ic0lhkba2bb-caprice32-20180210-53de695/bin
patching script interpreter paths in /nix/store/qpinmdv5ih2vac0bp4hl9ic0lhkba2bb-caprice32-20180210-53de695
checking for references to /build in /nix/store/qpinmdv5ih2vac0bp4hl9ic0lhkba2bb-caprice32-20180210-53de695...
/nix/store/qpinmdv5ih2vac0bp4hl9ic0lhkba2bb-caprice32-20180210-53de695

postPatch = "substituteInPlace cap32.cfg --replace /usr/local $out";

meta = with stdenv.lib; {
description = "a complete emulation of CPC464, CPC664 and CPC6128";
Copy link
Contributor

Choose a reason for hiding this comment

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

Please capitalize the description


nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libpng SDL freetype zlib ];
makeFlags = [ "GIT_HASH=$(src.rev)" "DESTDIR=$(out)" "prefix=/"];
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if GIT_HASH=$(src.rev) will really work as expected ... I suggest using GIT_HASH=${src.rev} instead.

@bignaux bignaux changed the title caprice32 : init at 20180210-53de695 caprice32 : init at 2018-02-10-53de695 Feb 16, 2018
@bignaux bignaux changed the title caprice32 : init at 2018-02-10-53de695 caprice32 : init at unstable-2018-02-10 Feb 17, 2018
@joachifm joachifm merged commit 7bffe53 into NixOS:master Mar 4, 2018
@bignaux bignaux deleted the caprice32 branch March 5, 2018 17:04
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

3 participants