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

nix-shell -p nix-info --run "nix-info -m" does not work in container #16

Open
coretemp opened this issue May 4, 2018 · 3 comments
Open

Comments

@coretemp
Copy link

coretemp commented May 4, 2018

Using lnl7/nix:2018-03-13-patch1 the command nix-shell -p nix-info --run "nix-info -m" fails:

(see /nix/store/15kgcm8hnd99p7plqzx7p4lcr2jni4df-set-source-date-epoch-to-latest.sh: line 13: [: : integer expression expected )

# within the container
sh-4.4# nix-shell -p nix-info --run "nix-info -m"
these derivations will be built:
  /nix/store/y3wqwzz0r1b3n48jfkqd8bkk3wnr9q23-nix-info.drv
building '/nix/store/y3wqwzz0r1b3n48jfkqd8bkk3wnr9q23-nix-info.drv'...
unpacking sources
unpacking source archive /nix/store/wr8bahshiaw2y3yradfkwjml8kp86mrm-info.sh
source root is nix-info
/nix/store/15kgcm8hnd99p7plqzx7p4lcr2jni4df-set-source-date-epoch-to-latest.sh: line 13: [: : integer expression expected
patching sources
configuring
no configure script, doing nothing
building
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/hcsg6lbs64ygbaz3x21wsh56ijxm9fc0-nix-info
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/hcsg6lbs64ygbaz3x21wsh56ijxm9fc0-nix-info/bin 
patching script interpreter paths in /nix/store/hcsg6lbs64ygbaz3x21wsh56ijxm9fc0-nix-info
checking for references to /tmp/nix-build-nix-info.drv-0 in /nix/store/hcsg6lbs64ygbaz3x21wsh56ijxm9fc0-nix-info...
 - system: `"x86_64-linux"`
 - host os: `Linux 4.15.18`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.0`
 - nixpkgs: `/nix/store/ij1fzas5yrvqcpxmswk8pmwpwlnjllb7-nixpkgs-unstable-2018-03-13`
@LnL7
Copy link
Owner

LnL7 commented May 4, 2018

Isn't that just a warning?

@coretemp
Copy link
Author

coretemp commented May 6, 2018

I consider such warnings fatal in all my developments as do many other people. It's literally supplying the wrong argument. It's the equivalent of writing down 1 + "hello world" (type error).

@masaeedu
Copy link

@coretemp isn't this a nixpkgs bug?

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

No branches or pull requests

3 participants