mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
38649d6536
{ "blacklisted": [], "broken": [], "built": [ "nuv" ], "extra-nixpkgs-config": null, "failed": [], "non-existent": [], "pr": 316731, "system": "x86_64-linux", "tests": [] }
18 lines
443 B
Nix
18 lines
443 B
Nix
{ runCommand, nuv, version }:
|
|
|
|
runCommand "nuv-test-run"
|
|
{
|
|
nativeBuildInputs = [ nuv ];
|
|
} ''
|
|
export TMP_BASE=$(mktemp -d /tmp/.nuv-XXXXX)
|
|
export HOME=$TMP_BASE
|
|
export NUV_REPO=""
|
|
export NUV_ROOT=$TMP_BASE/.nuv/3.0.0/olaris
|
|
rm -rf $TMP_BASE/.nuv && \
|
|
mkdir -p $TMP_BASE/.nuv/3.0.0/olaris && \
|
|
mkdir $TMP_BASE/.nuv/tmp
|
|
V=$(nuv -version 2>/dev/null)
|
|
diff -U3 --color=auto <(echo "$V") <(echo "${version}")
|
|
touch $out
|
|
''
|