diff --git a/manifest.dhall b/manifest.dhall index 9fc6a30720cba4f1e5c5a1bc395da0d253fe1d18..6974ddd768bdabe86bdf6452c083075d9b21874d 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -473,6 +473,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "quickcheck-dynamic" "2.0.0" , callHackage "quickcheck-instances" "0.3.28" , callHackage "random-shuffle" "0.0.4" + , callHackage "random" "1.2.1.1" , callHackage "rebase" "1.16" , callHackage "reducers" "3.12.4" , callHackage "regex-applicative" "0.3.4" diff --git a/overlay.nix b/overlay.nix index 5534395c04074307941eb22cf95be7f4363af317..abf2a50939bb956dd8e8ea3a3d0fa804472a9090 100644 --- a/overlay.nix +++ b/overlay.nix @@ -657,6 +657,8 @@ self: with pkgs.haskell.lib; { quickcheck-instances = self.callPackage (./pkgs/quickcheck-instances.nix) { }; + random = self.callPackage (./pkgs/random.nix) { }; + random-shuffle = self.callPackage (./pkgs/random-shuffle.nix) { }; rebase = self.callPackage (./pkgs/rebase.nix) { }; diff --git a/pkgs/random.nix b/pkgs/random.nix new file mode 100644 index 0000000000000000000000000000000000000000..88b6aad6cdf00b2ac7a11c0d2eb5a43412e25814 --- /dev/null +++ b/pkgs/random.nix @@ -0,0 +1,64 @@ +{ mkDerivation +, base +, bytestring +, containers +, deepseq +, doctest +, lib +, mtl +, primitive +, rdtsc +, smallcheck +, split +, splitmix +, stm +, tasty +, tasty-bench +, tasty-hunit +, tasty-inspection-testing +, tasty-smallcheck +, time +, transformers +}: +mkDerivation { + pname = "random"; + version = "1.2.1.1"; + sha256 = "3e1272f7ed6a4d7bd1712b90143ec326fee9b225789222379fea20a9c90c9b76"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ base bytestring deepseq mtl splitmix ]; + testHaskellDepends = [ + base + bytestring + containers + doctest + smallcheck + stm + tasty + tasty-hunit + tasty-inspection-testing + tasty-smallcheck + transformers + ]; + benchmarkHaskellDepends = [ + base + mtl + primitive + rdtsc + split + splitmix + tasty-bench + time + ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + description = "Pseudo-random number generation"; + license = lib.licenses.bsd3; + broken = false; +}