3 ms·
Minimal example: export v824=$(nix-build 'channel:nixos-15.09-small' -A coreutils) export v830=$(nix-build 'channel:nixos-19.09-small' -A coreutils) $v82
by tomberek 6y ago
Minimal example:
export v824=$(nix-build 'channel:nixos-15.09-small' -A coreutils)
export v830=$(nix-build 'channel:nixos-19.09-small' -A coreutils)
$v824/bin/cat /etc/passwd | $v830/bin/cat -A
You can get better specificity by using a nixpkgs git repo/hash instead of channel or adding `--no-out-link`, but this is minimal.
- Shoue 6y agoEven more concise: nix run -f channel:nixos-19.03 hello -c hello | nix run -f channel:nixos-20.03 ripgrep -c rg Hello