diff options
author | Felix Buehler <account@buehler.rocks> | 2023-03-05 22:08:45 +0100 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2023-03-06 22:40:04 +0100 |
commit | d10e69c86bcd415f5c4347d3c6b981241e913465 (patch) | |
tree | 2ceccb33151ff07aa71680771ca6b6d549641164 /pkgs/build-support/coq/default.nix | |
parent | 794f34657e066a5e8cc4bb34491fee02240c6ac4 (diff) | |
download | nixpkgs-d10e69c86bcd415f5c4347d3c6b981241e913465.tar nixpkgs-d10e69c86bcd415f5c4347d3c6b981241e913465.tar.gz nixpkgs-d10e69c86bcd415f5c4347d3c6b981241e913465.tar.bz2 nixpkgs-d10e69c86bcd415f5c4347d3c6b981241e913465.tar.lz nixpkgs-d10e69c86bcd415f5c4347d3c6b981241e913465.tar.xz nixpkgs-d10e69c86bcd415f5c4347d3c6b981241e913465.tar.zst nixpkgs-d10e69c86bcd415f5c4347d3c6b981241e913465.zip |
treewide: deprecate isNull
https://nixos.org/manual/nix/stable/language/builtins.html#builtins-isNull
Diffstat (limited to 'pkgs/build-support/coq/default.nix')
-rw-r--r-- | pkgs/build-support/coq/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/coq/default.nix b/pkgs/build-support/coq/default.nix index e26504a66f1..eb045ddf686 100644 --- a/pkgs/build-support/coq/default.nix +++ b/pkgs/build-support/coq/default.nix @@ -52,7 +52,7 @@ let inherit release releaseRev; location = { inherit domain owner repo; }; } // optionalAttrs (args?fetcher) {inherit fetcher;}); - fetched = fetch (if !isNull version then version else defaultVersion); + fetched = fetch (if version != null then version else defaultVersion); display-pkg = n: sep: v: let d = displayVersion.${n} or (if sep == "" then ".." else true); in n + optionalString (v != "" && v != null) (switch d [ |