diff options
author | Shawn8901 <shawn8901@googlemail.com> | 2023-01-21 23:19:48 +0100 |
---|---|---|
committer | Shawn8901 <shawn8901@googlemail.com> | 2023-01-21 23:19:48 +0100 |
commit | 4dcb03a5c32a90dbef83094183ef52e0580dfd22 (patch) | |
tree | 8fccecb83f2638fef7a880d75a21b714a3742b8c /pkgs/development/coq-modules/coqeal | |
parent | 11da253ac9d248a2daa5a4a9b5c630bb0603cab3 (diff) |
treewide: remove global with lib; statements in pkgs/coq-modules
Diffstat (limited to 'pkgs/development/coq-modules/coqeal')
-rw-r--r-- | pkgs/development/coq-modules/coqeal/default.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/development/coq-modules/coqeal/default.nix b/pkgs/development/coq-modules/coqeal/default.nix index d3a8e366a0a47..1ccbf9e82a0fe 100644 --- a/pkgs/development/coq-modules/coqeal/default.nix +++ b/pkgs/development/coq-modules/coqeal/default.nix @@ -2,14 +2,12 @@ mathcomp-real-closed, lib, version ? null }: -with lib; - (mkCoqDerivation { pname = "CoqEAL"; inherit version; - defaultVersion = with versions; switch [ coq.version mathcomp.version ] [ + defaultVersion = with lib.versions; lib.switch [ coq.version mathcomp.version ] [ { cases = [ (range "8.13" "8.16") (isGe "1.13.0") ]; out = "1.1.1"; } { cases = [ (range "8.10" "8.15") (isGe "1.12.0") ]; out = "1.1.0"; } { cases = [ (isGe "8.10") (range "1.11.0" "1.12.0") ]; out = "1.0.5"; } @@ -28,9 +26,9 @@ with lib; meta = { description = "CoqEAL - The Coq Effective Algebra Library"; - license = licenses.mit; + license = lib.licenses.mit; }; }).overrideAttrs (o: { propagatedBuildInputs = o.propagatedBuildInputs - ++ optional (versions.isGe "1.1" o.version || o.version == "dev") mathcomp-real-closed; + ++ lib.optional (lib.versions.isGe "1.1" o.version || o.version == "dev") mathcomp-real-closed; }) |