From 4381f51bb03e32c2194667dfc15678dc5d8fe246 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Fri, 4 Nov 2022 18:27:01 +0000 Subject: [PATCH] tf-random: init at 0.5 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/tf-random.nix | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 pkgs/tf-random.nix diff --git a/manifest.dhall b/manifest.dhall index bcc2fd7e..b8255035 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -467,6 +467,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "text-zipper" "0.12" , callHackage "these" "1.1.1.1" , callHackage "these-skinny" "0.7.5" + , callHackage "tf-random" "0.5" , callHackage "th-extras" "0.0.0.6" , callHackage "th-lift-instances" "0.1.20" , callHackage "tidal" "1.8.1" diff --git a/overlay.nix b/overlay.nix index 83c388c9..fde827da 100644 --- a/overlay.nix +++ b/overlay.nix @@ -563,6 +563,8 @@ final: prev: with pkgs.haskell.lib; { text-zipper = prev.callPackage (./pkgs/text-zipper.nix) { }; + tf-random = prev.callPackage (./pkgs/tf-random.nix) { }; + th-extras = prev.callPackage (./pkgs/th-extras.nix) { }; th-lift-instances = prev.callPackage (./pkgs/th-lift-instances.nix) { }; diff --git a/pkgs/tf-random.nix b/pkgs/tf-random.nix new file mode 100644 index 00000000..534add50 --- /dev/null +++ b/pkgs/tf-random.nix @@ -0,0 +1,20 @@ +{ mkDerivation, base, lib, primitive, random, time }: +mkDerivation { + pname = "tf-random"; + version = "0.5"; + sha256 = "2e30cec027b313c9e1794d326635d8fc5f79b6bf6e7580ab4b00186dadc88510"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ base primitive random time ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + description = "High-quality splittable pseudorandom number generator"; + license = lib.licenses.bsd3; + broken = false; +} -- GitLab