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

dhall: passthru dhall prelude #35558

Merged
merged 1 commit into from Feb 26, 2018

Conversation

Profpatsch
Copy link
Member

Makes it possible to reference dhall.prelude, the same version that comes with
the dhall exetutable’s source code.

cc @Gabriel439 @ocharles

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

Package ‘jailbreak-cabal-1.3.2’ in /var/lib/gc-of-borg/nix-test-rs-3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-3/pkgs/development/haskell-modules/hackage-packages.nix:119997 is not supported on ‘aarch64-linux’, 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.


in static.overrideAttrs (old: {
passthru = old.passthru or {} // {
prelude = stdenv.mkDerivation {
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 you can use runCommand instead of stdenv.mkDerivation. Besides simplifying the expression it also involves an unnecessary build-time dependence on the C compiler:

prelude = runCommand "dhall-prelude" {} ''
  mkdir $out
  cp -r ${old.src}/Prelude/* $out/
''

Copy link
Member Author

Choose a reason for hiding this comment

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

That doesn’t work (tried it) because old.src is a .tar.gz. What could work is invoking stdenv manually, but I don’t know if it’s worth the effort.

Copy link
Contributor

Choose a reason for hiding this comment

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

In that case you can use stdenvNoCC instead of stdenv, which at least removes the build-time dependency on the C compiler

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/3c6g5xwas2kv5mns670nhpy55prbdnac-dhall-1.8.2
shrinking /nix/store/3c6g5xwas2kv5mns670nhpy55prbdnac-dhall-1.8.2/bin/dhall-format
shrinking /nix/store/3c6g5xwas2kv5mns670nhpy55prbdnac-dhall-1.8.2/bin/dhall
shrinking /nix/store/3c6g5xwas2kv5mns670nhpy55prbdnac-dhall-1.8.2/bin/dhall-hash
shrinking /nix/store/3c6g5xwas2kv5mns670nhpy55prbdnac-dhall-1.8.2/lib/ghc-8.2.2/x86_64-linux-ghc-8.2.2/libHSdhall-1.8.2-1wGHSNzkT58LCxxNxzgqy3-ghc8.2.2.so
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/3c6g5xwas2kv5mns670nhpy55prbdnac-dhall-1.8.2/lib  /nix/store/3c6g5xwas2kv5mns670nhpy55prbdnac-dhall-1.8.2/bin 
patching script interpreter paths in /nix/store/3c6g5xwas2kv5mns670nhpy55prbdnac-dhall-1.8.2
checking for references to /tmp/nix-build-dhall-1.8.2.drv-0 in /nix/store/3c6g5xwas2kv5mns670nhpy55prbdnac-dhall-1.8.2...
/nix/store/3c6g5xwas2kv5mns670nhpy55prbdnac-dhall-1.8.2

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

Package ‘jailbreak-cabal-1.3.2’ in /var/lib/gc-of-borg/nix-test-rs-1/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-1/pkgs/development/haskell-modules/hackage-packages.nix:119997 is not supported on ‘aarch64-linux’, 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)

/nix/store/3c6g5xwas2kv5mns670nhpy55prbdnac-dhall-1.8.2

@Profpatsch
Copy link
Member Author

@GrahamcOfBorg build dhall.prelude

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

these paths will be fetched (0.11 MiB download, 0.11 MiB unpacked):
  /nix/store/x27dvpcksc20swnxjljr4j286shj4mww-dhall-1.8.2.tar.gz
copying path '/nix/store/x27dvpcksc20swnxjljr4j286shj4mww-dhall-1.8.2.tar.gz' from 'https://cache.nixos.org'...
building '/nix/store/q5figqya7zx6v37qrd6mzzzsm6nvf951-dhall-prelude.drv'...
unpacking sources
unpacking source archive /nix/store/x27dvpcksc20swnxjljr4j286shj4mww-dhall-1.8.2.tar.gz
source root is dhall-1.8.2
setting SOURCE_DATE_EPOCH to timestamp 1513290855 of file dhall-1.8.2/tests/regression/issue164.dhall
installing
/nix/store/5w9xvmlpk49fkw2q1n77iywrnlpqcc2r-dhall-prelude

Makes it possible to reference `dhall.prelude`, the same version that comes with
the dhall exetutable’s source code.
@Profpatsch
Copy link
Member Author

Corrected the invocation in all-packages.nix, was way too tired yesterday.

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

Package ‘jailbreak-cabal-1.3.2’ in /var/lib/gc-of-borg/nix-test-rs-3/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-3/pkgs/development/haskell-modules/hackage-packages.nix:119997 is not supported on ‘aarch64-linux’, 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)

these derivations will be built:
  /nix/store/9c6cgpj1ivwbsk46ckczd22g68x6wjgp-dhall-prelude.drv
building path(s) ‘/nix/store/iwygnlcavz1iaqbcrzh9kz1nz9mbz25d-dhall-prelude’
unpacking sources
unpacking source archive /nix/store/x27dvpcksc20swnxjljr4j286shj4mww-dhall-1.8.2.tar.gz
source root is dhall-1.8.2
setting SOURCE_DATE_EPOCH to timestamp 1513290855 of file dhall-1.8.2/tests/regression/issue164.dhall
installing
/nix/store/iwygnlcavz1iaqbcrzh9kz1nz9mbz25d-dhall-prelude

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/4n2wpwg8ypn7vkqa7g0dmxxi92ysm9zy-dhall-1.8.2
shrinking /nix/store/4n2wpwg8ypn7vkqa7g0dmxxi92ysm9zy-dhall-1.8.2/bin/dhall-format
shrinking /nix/store/4n2wpwg8ypn7vkqa7g0dmxxi92ysm9zy-dhall-1.8.2/bin/dhall
shrinking /nix/store/4n2wpwg8ypn7vkqa7g0dmxxi92ysm9zy-dhall-1.8.2/bin/dhall-hash
shrinking /nix/store/4n2wpwg8ypn7vkqa7g0dmxxi92ysm9zy-dhall-1.8.2/lib/ghc-8.2.2/x86_64-linux-ghc-8.2.2/libHSdhall-1.8.2-1wGHSNzkT58LCxxNxzgqy3-ghc8.2.2.so
strip is /nix/store/97ahf6sg6mwnl98bksrjvbp4zb4yq44n-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/4n2wpwg8ypn7vkqa7g0dmxxi92ysm9zy-dhall-1.8.2/lib  /nix/store/4n2wpwg8ypn7vkqa7g0dmxxi92ysm9zy-dhall-1.8.2/bin 
patching script interpreter paths in /nix/store/4n2wpwg8ypn7vkqa7g0dmxxi92ysm9zy-dhall-1.8.2
checking for references to /tmp/nix-build-dhall-1.8.2.drv-0 in /nix/store/4n2wpwg8ypn7vkqa7g0dmxxi92ysm9zy-dhall-1.8.2...
/nix/store/4n2wpwg8ypn7vkqa7g0dmxxi92ysm9zy-dhall-1.8.2

@Profpatsch Profpatsch merged commit 6a70e4e into NixOS:master Feb 26, 2018
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