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

duktape: init at 2.2.0 #34285

Merged
merged 1 commit into from Feb 10, 2018
Merged

duktape: init at 2.2.0 #34285

merged 1 commit into from Feb 10, 2018

Conversation

fgaz
Copy link
Member

@fgaz fgaz commented Jan 26, 2018

Motivation for this change

The duktape js interpreter

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.


meta = {
version = "2.2.0";
description = "Duktape is an embeddable Javascript engine, with a focus on portability and compact footprint";
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Right, sorry. i just copypasted that without thinking

'';
enableParallelBuilding = true;

meta = {
Copy link
Member

Choose a reason for hiding this comment

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

Use with stdenv.lib;

Copy link
Member

@dotlambda dotlambda left a comment

Choose a reason for hiding this comment

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

You might want to move version out of meta since it's not a standard meta attribute.

@fgaz
Copy link
Member Author

fgaz commented Jan 26, 2018

@dotlambda it's there because I wanted to try updateWalker, but I never found any info about it (do you have any pointers about it?).

Moving it now.

@dotlambda
Copy link
Member

Ah I see. I never heard of updateWalker previously.

@fpletz
Copy link
Member

fpletz commented Jan 28, 2018

@GrahamcOfBorg build duktape

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Failure on x86_64-darwin (full log)

Partial log (click to expand)

Package ‘duktape-2.2.0’ in /tmp/nix-ofborg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/pkgs/development/interpreters/duktape/default.nix:24 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.

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Success on x86_64-linux (full log)

Partial log (click to expand)

post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/hxw18j0mywzkp5rah2v112m5r2n6kq13-duktape-2.2.0
shrinking /nix/store/hxw18j0mywzkp5rah2v112m5r2n6kq13-duktape-2.2.0/bin/duk
shrinking /nix/store/hxw18j0mywzkp5rah2v112m5r2n6kq13-duktape-2.2.0/lib/libduktape.so.202.20200
shrinking /nix/store/hxw18j0mywzkp5rah2v112m5r2n6kq13-duktape-2.2.0/lib/libduktaped.so.202.20200
strip is /nix/store/mdyy001q67hiks0g24ra53z7ckm4jfr4-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/hxw18j0mywzkp5rah2v112m5r2n6kq13-duktape-2.2.0/lib  /nix/store/hxw18j0mywzkp5rah2v112m5r2n6kq13-duktape-2.2.0/bin 
patching script interpreter paths in /nix/store/hxw18j0mywzkp5rah2v112m5r2n6kq13-duktape-2.2.0
checking for references to /tmp/nix-build-duktape-2.2.0.drv-0 in /nix/store/hxw18j0mywzkp5rah2v112m5r2n6kq13-duktape-2.2.0...
/nix/store/hxw18j0mywzkp5rah2v112m5r2n6kq13-duktape-2.2.0

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Success on aarch64-linux (full log)

Partial log (click to expand)

post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/bd31f56w5r3b2zldg7wkfzxb7c3p3m62-duktape-2.2.0
shrinking /nix/store/bd31f56w5r3b2zldg7wkfzxb7c3p3m62-duktape-2.2.0/lib/libduktaped.so.202.20200
shrinking /nix/store/bd31f56w5r3b2zldg7wkfzxb7c3p3m62-duktape-2.2.0/lib/libduktape.so.202.20200
shrinking /nix/store/bd31f56w5r3b2zldg7wkfzxb7c3p3m62-duktape-2.2.0/bin/duk
strip is /nix/store/jwz859pxqj7sl2dbwvmxkx68jp774izb-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/bd31f56w5r3b2zldg7wkfzxb7c3p3m62-duktape-2.2.0/lib  /nix/store/bd31f56w5r3b2zldg7wkfzxb7c3p3m62-duktape-2.2.0/bin
patching script interpreter paths in /nix/store/bd31f56w5r3b2zldg7wkfzxb7c3p3m62-duktape-2.2.0
checking for references to /build in /nix/store/bd31f56w5r3b2zldg7wkfzxb7c3p3m62-duktape-2.2.0...
/nix/store/bd31f56w5r3b2zldg7wkfzxb7c3p3m62-duktape-2.2.0

@fgaz
Copy link
Member Author

fgaz commented Feb 8, 2018

Should I enable building on darwin or is this mergeable?

@Mic92 Mic92 merged commit 7e36db8 into NixOS:master Feb 10, 2018
@fgaz fgaz deleted the duktape branch February 10, 2018 19:38
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

5 participants