From f4be7270bb8aaa2a406affd1ca8ab62fbb4b3df6 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Mon, 7 Nov 2022 11:39:13 +0000 Subject: [PATCH] Decimal: init at 0.5.2 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/Decimal.nix | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 pkgs/Decimal.nix diff --git a/manifest.dhall b/manifest.dhall index 65006d85..786ab8c4 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -60,6 +60,7 @@ in [ callHackage "Cabal" "3.8.1.0" (None Text) (Some "Cabal-tree-diff") , callHackage "ChasingBottoms" "1.3.1.12" + , callHackage "Decimal" "0.5.2" , callHackage "Diff" "0.4.1" , callHackage "Glob" "0.10.2" , callHackage "HTTP" "4000.4.1" diff --git a/overlay.nix b/overlay.nix index c9619ddc..82bc049d 100644 --- a/overlay.nix +++ b/overlay.nix @@ -13,6 +13,8 @@ self: with pkgs.haskell.lib; { ChasingBottoms = self.callPackage (./pkgs/ChasingBottoms.nix) { }; + Decimal = self.callPackage (./pkgs/Decimal.nix) { }; + Diff = self.callPackage (./pkgs/Diff.nix) { }; Glob = self.callPackage (./pkgs/Glob.nix) { }; diff --git a/pkgs/Decimal.nix b/pkgs/Decimal.nix new file mode 100644 index 00000000..3c898cec --- /dev/null +++ b/pkgs/Decimal.nix @@ -0,0 +1,39 @@ +{ mkDerivation +, base +, deepseq +, HUnit +, lib +, QuickCheck +, test-framework +, test-framework-hunit +, test-framework-quickcheck2 +}: +mkDerivation { + pname = "Decimal"; + version = "0.5.2"; + sha256 = "a37a0220424e4bcb8cae1d38844c7027ee314449758d0d14ff3e2e0a5c8a87a7"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ base deepseq ]; + testHaskellDepends = [ + base + deepseq + HUnit + QuickCheck + test-framework + test-framework-hunit + test-framework-quickcheck2 + ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "https://github.com/PaulJohnson/Haskell-Decimal"; + description = "Decimal numbers with variable precision"; + license = lib.licenses.bsd3; + broken = false; +} -- GitLab