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

SBT refuses to build if JRE is overwritten #114462

Closed
GrafBlutwurst opened this issue Feb 26, 2021 · 0 comments · Fixed by #114474
Closed

SBT refuses to build if JRE is overwritten #114462

GrafBlutwurst opened this issue Feb 26, 2021 · 0 comments · Fixed by #114474

Comments

@GrafBlutwurst
Copy link
Contributor

Describe the bug
As of this commit af2e9e5 the package no longer allows overriding the JRE without failing to build.

It still worked as of this commit a7a6400#diff-97a517ee2aa8880018d9cb752cc14df25a184a5ea0430099f9af57000562e5a8

To Reproduce

Note that sbt.nix is the content of the default.nix in the above commit.

{ pkgs ? import <nixpkgs> {} }:

let 
sbtRaw = pkgs.callPackage ./sbt.nix { jre = pkgs.jre8; };
in
pkgs.mkShell {
  buildInputs = [
    sbtRaw
  ];
}

note it also fails when overriding with pkgs.jdk11 however pkgs.jdk which is the current java15 version works.

Expected behavior
Successful build of SBT

Additional context

Non Debug output

these derivations will be built:
  /nix/store/k6jsvkq719kavnmvscnyxlgld90b6m46-sbt-1.4.7.drv
building '/nix/store/k6jsvkq719kavnmvscnyxlgld90b6m46-sbt-1.4.7.drv'...
unpacking sources
unpacking source archive /nix/store/1g5qdvbg7wycy418vxa661jnqijqqg66-sbt-1.4.7.tgz
source root is sbt
setting SOURCE_DATE_EPOCH to timestamp 1612072156 of file sbt/conf/sbtopts
patching sources
configuring
no configure script, doing nothing
building
no Makefile, doing nothing
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/gzdrp665llwvbm2w15bmadvlj2j1bdig-sbt-1.4.7
shrinking /nix/store/gzdrp665llwvbm2w15bmadvlj2j1bdig-sbt-1.4.7/share/sbt/bin/sbtn-x86_64-pc-linux
strip is /nix/store/9f8y44vmjnwdjvzlff0gm3f3g6ycyyqy-binutils-2.35.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/gzdrp665llwvbm2w15bmadvlj2j1bdig-sbt-1.4.7/bin
patching script interpreter paths in /nix/store/gzdrp665llwvbm2w15bmadvlj2j1bdig-sbt-1.4.7
/nix/store/gzdrp665llwvbm2w15bmadvlj2j1bdig-sbt-1.4.7/share/sbt/bin/sbt: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/yyy7wr7r9jwjjqkr1yn643g3wzv010zd-bash-4.4-p23/bin/bash"
checking for references to /tmp/nix-build-sbt-1.4.7.drv-0/ in /nix/store/gzdrp665llwvbm2w15bmadvlj2j1bdig-sbt-1.4.7...
automatically fixing dependencies for ELF files
searching for dependencies of /nix/store/gzdrp665llwvbm2w15bmadvlj2j1bdig-sbt-1.4.7/share/sbt/bin/sbtn-x86_64-pc-linux
  libz.so.1 -> found: /nix/store/7bgshg2z70fpcc7adxfag1lgf45yamxh-zlib-1.2.11/lib/libz.so.1
setting RPATH to: /nix/store/7bgshg2z70fpcc7adxfag1lgf45yamxh-zlib-1.2.11/lib
running install tests
builder for '/nix/store/k6jsvkq719kavnmvscnyxlgld90b6m46-sbt-1.4.7.drv' failed with exit code 1
error: build of '/nix/store/k6jsvkq719kavnmvscnyxlgld90b6m46-sbt-1.4.7.drv' failed

Notify maintainers
@NeQuissimus

Metadata

these paths will be fetched (0.00 MiB download, 0.00 MiB unpacked):
  /nix/store/4js3iv1gkidlmaz19k8v5hkzx5xkwgad-nix-info
copying path '/nix/store/4js3iv1gkidlmaz19k8v5hkzx5xkwgad-nix-info' from 'https://cache.nixos.org'...
 - system: `"x86_64-linux"`
 - host os: `Linux 5.4.86, NixOS, 20.09.2483.c5c6009fb43 (Nightingale)`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.3.9`
 - channels(grafblutwurst): `"home-manager, nixos-20.09.3301.42809feaa9f, nixpkgs-21.05pre272691.04ac9dcd311"`
 - channels(root): `"nixos-20.09.2483.c5c6009fb43"`
 - nixpkgs: `/home/grafblutwurst/.nix-defexpr/channels/nixpkgs`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant