about summary refs log tree commit diff
path: root/pkgs/servers/foundationdb
diff options
context:
space:
mode:
authorAnders Kaseorg <andersk@mit.edu>2022-04-25 13:35:24 -0700
committerAnders Kaseorg <andersk@mit.edu>2022-04-25 13:35:24 -0700
commit6920d8ca42b081c874486ad16fc66f43d8bb8074 (patch)
tree7dcfdc6b44c84a854a68c9bc36d849e5c9470ad5 /pkgs/servers/foundationdb
parent00e66f10fa1120875201eace3b0a238f7d1b39ca (diff)
treewide: Simplify negated uses of versionAtLeast, versionOlder
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Diffstat (limited to 'pkgs/servers/foundationdb')
-rw-r--r--pkgs/servers/foundationdb/vsmake.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/servers/foundationdb/vsmake.nix b/pkgs/servers/foundationdb/vsmake.nix
index 52807fc062012..776e724c9c66a 100644
--- a/pkgs/servers/foundationdb/vsmake.nix
+++ b/pkgs/servers/foundationdb/vsmake.nix
@@ -84,7 +84,7 @@ let
         makeFlags = [ "all" "fdb_java" "fdb_python" ]
           # Don't compile FDBLibTLS if we don't need it in 6.0 or later;
           # it gets statically linked in
-          ++ lib.optional (!lib.versionAtLeast version "6.0") [ "fdb_c" ]
+          ++ lib.optional (lib.versionOlder version "6.0") [ "fdb_c" ]
           # Needed environment overrides
           ++ [ "KVRELEASE=1"
                "NOSTRIP=1"
@@ -100,7 +100,7 @@ let
         installPhase = ''
           mkdir -vp $out/{bin,libexec/plugins} $lib/{lib,share/java} $dev/include/foundationdb
 
-        '' + lib.optionalString (!lib.versionAtLeast version "6.0") ''
+        '' + lib.optionalString (lib.versionOlder version "6.0") ''
           # we only copy the TLS library on < 6.0, since it's compiled-in otherwise
           cp -v ./lib/libFDBLibTLS.so $out/libexec/plugins/FDBLibTLS.so
         '' + ''