aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-10-05 14:50:55 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-10-05 14:50:55 +0200
commit223ab254c29313fff2a9af463baa2f0b68d7d83f (patch)
treede7e40336cbedf48362c9dfe6c15669a4cde0937
parentb14bc06955885f661e4af5f04513086d74f2cab7 (diff)
Compatibility
-rw-r--r--flake.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index 91341c97d..d3486db4c 100644
--- a/flake.nix
+++ b/flake.nix
@@ -126,8 +126,7 @@
''
mkdir -p $out/nix-support
- # Converts /nix/store/50p3qk8kka9dl6wyq40vydq945k0j3kv-nix-2.4pre20201102_550e11f/bin/nix
- # To 50p3qk8kka9dl6wyq40vydq945k0j3kv/bin/nix
+ # Converts /nix/store/50p3qk8k...-nix-2.4pre20201102_550e11f/bin/nix to 50p3qk8k.../bin/nix.
tarballPath() {
# Remove the store prefix
local path=''${1#${builtins.storeDir}/}
@@ -153,10 +152,15 @@
echo "file installer $out/install" >> $out/nix-support/hydra-build-products
'';
- testNixVersions = pkgs: client: daemon: with commonDeps pkgs; pkgs.stdenv.mkDerivation {
+ testNixVersions = pkgs: client: daemon: with commonDeps pkgs; with pkgs.lib; pkgs.stdenv.mkDerivation {
NIX_DAEMON_PACKAGE = daemon;
NIX_CLIENT_PACKAGE = client;
- name = "nix-tests-${client.version}-against-${daemon.version}";
+ name =
+ "nix-tests"
+ + optionalString
+ (versionAtLeast daemon.version "2.4pre20211005" &&
+ versionAtLeast client.version "2.4pre20211005")
+ "-${client.version}-against-${daemon.version}";
inherit version;
src = self;