nix-docker icon indicating copy to clipboard operation
nix-docker copied to clipboard

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

Open coretemp opened this issue 6 years ago • 3 comments

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`

coretemp avatar May 04 '18 11:05 coretemp

Isn't that just a warning?

LnL7 avatar May 04 '18 21:05 LnL7

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).

coretemp avatar May 06 '18 20:05 coretemp

@coretemp isn't this a nixpkgs bug?

masaeedu avatar May 24 '19 21:05 masaeedu