I am new to Nix, but I am pretty sure there is a dependency missing.
Steps To Reproduce
Run Docker container:
docker run -ti nixos/nix:2.7.0 /bin/sh
Install colordiff:
sh-4.4# nix-env -iA nixpkgs.colordiff
installing 'colordiff-1.0.20'
these 9 paths will be fetched (16.15 MiB download, 88.22 MiB unpacked):
/nix/store/1xjldbdb814annhpmcwz7h6z6y3lay15-acl-2.3.1
/nix/store/4i0gfyhwf63ycz5j489mgkh2nlinnvfi-perl-5.34.0
/nix/store/4nmqxajzaf60yjribkgvj5j54x9yvr1r-bash-5.1-p12
/nix/store/4s21k8k7p1mfik0b33r2spq5hq7774k1-glibc-2.33-108
/nix/store/8ckxc8biqqfdwyhr0w70jgrcb4h7a4y5-libunistring-0.9.10
/nix/store/9igigiz42g7w2i605dd5k1spxy9nkf48-attr-2.5.1
/nix/store/dj89pwrdlycn8iyn08v8znmynjz1zsi9-coreutils-9.0
/nix/store/in6z4sl694ckak0q6zijniaj6ls52vdf-colordiff-1.0.20
/nix/store/w2id1hwv4vv7hvp4slgsyrydrjbfqdxc-libidn2-2.3.2
copying path '/nix/store/8ckxc8biqqfdwyhr0w70jgrcb4h7a4y5-libunistring-0.9.10' from 'https://cache.nixos.org'...
copying path '/nix/store/w2id1hwv4vv7hvp4slgsyrydrjbfqdxc-libidn2-2.3.2' from 'https://cache.nixos.org'...
copying path '/nix/store/4s21k8k7p1mfik0b33r2spq5hq7774k1-glibc-2.33-108' from 'https://cache.nixos.org'...
copying path '/nix/store/9igigiz42g7w2i605dd5k1spxy9nkf48-attr-2.5.1' from 'https://cache.nixos.org'...
copying path '/nix/store/4nmqxajzaf60yjribkgvj5j54x9yvr1r-bash-5.1-p12' from 'https://cache.nixos.org'...
copying path '/nix/store/1xjldbdb814annhpmcwz7h6z6y3lay15-acl-2.3.1' from 'https://cache.nixos.org'...
copying path '/nix/store/dj89pwrdlycn8iyn08v8znmynjz1zsi9-coreutils-9.0' from 'https://cache.nixos.org'...
copying path '/nix/store/4i0gfyhwf63ycz5j489mgkh2nlinnvfi-perl-5.34.0' from 'https://cache.nixos.org'...
copying path '/nix/store/in6z4sl694ckak0q6zijniaj6ls52vdf-colordiff-1.0.20' from 'https://cache.nixos.org'...
building '/nix/store/x15v64qi8lkv3d5s2b95as1mbhxms94a-user-environment.drv'...
Execute colordiff:
sh-4.4# colordiff -Naur /tmp/file1 /tmp/file2
colordiff 1.0.20 (http://www.colordiff.org/)
(C)2002-2022 Dave Ewart, davee@sungate.co.uk
Can't exec "diff": No such file or directory at /root/.nix-profile/bin/colordiff line 393.
readline() on closed filehandle $inputhandle at /root/.nix-profile/bin/colordiff line 419.
Use of uninitialized value $pid in waitpid at /root/.nix-profile/bin/colordiff line 656.
Install diffutils:
sh-4.4# nix-env -iA nixpkgs.diffutils
installing 'diffutils-3.8'
this path will be fetched (0.05 MiB download, 0.21 MiB unpacked):
/nix/store/rm10h940y46i7rxjhrx2dy94g6dy174y-diffutils-3.8-info
copying path '/nix/store/rm10h940y46i7rxjhrx2dy94g6dy174y-diffutils-3.8-info' from 'https://cache.nixos.org'...
building '/nix/store/qscqvnkny55jbh9qv0qaz4yz14x3x444-user-environment.drv'...
Describe the bug
I am new to Nix, but I am pretty sure there is a dependency missing.
Steps To Reproduce
Run Docker container:
Install colordiff:
Execute colordiff:
Install diffutils:
Expected behavior
Additional context
The Perl script itself uses the diff command. https://github.com/daveewart/colordiff/blob/current/colordiff.pl#L35
Notify maintainers
@SuperSandro2000
Metadata