diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-01-24 01:39:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-24 01:39:55 +0100 |
commit | 8ff706bad2860c19191f316915f999b4dda8b78e (patch) | |
tree | 6b39873aa0f0924c949a24af234741dcaaf1841e /pkgs/development/coq-modules/coqeal/default.nix | |
parent | 1c399311901f8563303ab18c165c17c33119a6ad (diff) | |
parent | 4dcb03a5c32a90dbef83094183ef52e0580dfd22 (diff) | |
download | nixpkgs-8ff706bad2860c19191f316915f999b4dda8b78e.tar nixpkgs-8ff706bad2860c19191f316915f999b4dda8b78e.tar.gz nixpkgs-8ff706bad2860c19191f316915f999b4dda8b78e.tar.bz2 nixpkgs-8ff706bad2860c19191f316915f999b4dda8b78e.tar.lz nixpkgs-8ff706bad2860c19191f316915f999b4dda8b78e.tar.xz nixpkgs-8ff706bad2860c19191f316915f999b4dda8b78e.tar.zst nixpkgs-8ff706bad2860c19191f316915f999b4dda8b78e.zip |
Merge pull request #212009 from Shawn8901/remove_with_lib_2
treewide: remove global with lib; statements in pkgs/coq-modules
Diffstat (limited to 'pkgs/development/coq-modules/coqeal/default.nix')
-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 d3a8e366a0a..1ccbf9e82a0 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; }) |