From 3ebebdfd4196276d708f1451d76acdc917a2c968 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sun, 6 Nov 2022 18:28:31 +0000
Subject: [PATCH] random: init at 1.2.1.1

---
 manifest.dhall  |  1 +
 overlay.nix     |  2 ++
 pkgs/random.nix | 64 +++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 67 insertions(+)
 create mode 100644 pkgs/random.nix

diff --git a/manifest.dhall b/manifest.dhall
index 9fc6a307..6974ddd7 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 5534395c..abf2a509 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 00000000..88b6aad6
--- /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;
+}
-- 
GitLab