LnL7 / nix-docker

Docker images for the Nix package manager
MIT License
288 stars 41 forks source link

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

Open coretemp opened 6 years ago

coretemp commented 6 years ago

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 commented 6 years ago

Isn't that just a warning?

coretemp commented 6 years ago

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 commented 5 years ago

@coretemp isn't this a nixpkgs bug?