From 8a92dd9a9af7131c9bf9860af3fd5bdf4e1d1a06 Mon Sep 17 00:00:00 2001 From: affeldt-aist <33154536+affeldt-aist@users.noreply.github.com> Date: Fri, 12 May 2023 06:09:28 +0900 Subject: [PATCH] mathcomp-infotheo: init at 0.5.1 (#231077) --- .../coq-modules/mathcomp-infotheo/default.nix | 19 +++++++++++++++++++ pkgs/top-level/coq-packages.nix | 1 + 2 files changed, 20 insertions(+) create mode 100644 pkgs/development/coq-modules/mathcomp-infotheo/default.nix diff --git a/pkgs/development/coq-modules/mathcomp-infotheo/default.nix b/pkgs/development/coq-modules/mathcomp-infotheo/default.nix new file mode 100644 index 00000000000..6a8bd17628d --- /dev/null +++ b/pkgs/development/coq-modules/mathcomp-infotheo/default.nix @@ -0,0 +1,19 @@ +{ coq, mkCoqDerivation, mathcomp-analysis, lib, version ? null }: + +mkCoqDerivation { + namePrefix = [ "coq" "mathcomp" ]; + pname = "infotheo"; + owner = "affeldt-aist"; + inherit version; + defaultVersion = with lib.versions; lib.switch [ coq.version mathcomp-analysis.version] [ + { cases = [ (range "8.15" "8.16") (range "0.5.4" "0.6.2") ]; out = "0.5.1"; } + ] null; + release."0.5.1".sha256 = "sha256-yBBl5l+V+dggsg5KM59Yo9CULKog/xxE8vrW+ZRnX7Y="; + + propagatedBuildInputs = [ mathcomp-analysis ]; + + meta = with lib; { + description = "A Coq formalization of information theory and linear error-correcting codes"; + license = licenses.lgpl21Plus; + }; +} diff --git a/pkgs/top-level/coq-packages.nix b/pkgs/top-level/coq-packages.nix index f8e249b7bbb..e83f18786f1 100644 --- a/pkgs/top-level/coq-packages.nix +++ b/pkgs/top-level/coq-packages.nix @@ -82,6 +82,7 @@ let mathcomp-bigenough = callPackage ../development/coq-modules/mathcomp-bigenough {}; mathcomp-classical = self.mathcomp-analysis.classical; mathcomp-finmap = callPackage ../development/coq-modules/mathcomp-finmap {}; + mathcomp-infotheo = callPackage ../development/coq-modules/mathcomp-infotheo {}; mathcomp-real-closed = callPackage ../development/coq-modules/mathcomp-real-closed {}; mathcomp-tarjan = callPackage ../development/coq-modules/mathcomp-tarjan {}; mathcomp-word = callPackage ../development/coq-modules/mathcomp-word {};