From eaaca7495ac6b737a73e179135f20c35b78f2518 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Sun, 6 Nov 2022 21:21:02 +0000 Subject: [PATCH] splitmix: init at 0.1.0.4 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/splitmix.nix | 68 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 pkgs/splitmix.nix diff --git a/manifest.dhall b/manifest.dhall index d5bd274b..c31ecd5e 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -567,6 +567,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "some" "1.0.4" , callHackage "sop-core" "0.5.0.1" , callHackage "souffle-haskell" "3.5.0" + , callHackage "splitmix" "0.1.0.4" , callHackage "split" "0.2.3.3" , callHackage "sqlite-simple" "0.4.18.2" , callHackage "statistics" "0.16.1.0" diff --git a/overlay.nix b/overlay.nix index bc025f2a..d894bca7 100644 --- a/overlay.nix +++ b/overlay.nix @@ -799,6 +799,8 @@ self: with pkgs.haskell.lib; { split = self.callPackage (./pkgs/split.nix) { }; + splitmix = self.callPackage (./pkgs/splitmix.nix) { }; + sqlite-simple = self.callPackage (./pkgs/sqlite-simple.nix) { }; statistics = self.callPackage (./pkgs/statistics.nix) { }; diff --git a/pkgs/splitmix.nix b/pkgs/splitmix.nix new file mode 100644 index 00000000..efaa9bcd --- /dev/null +++ b/pkgs/splitmix.nix @@ -0,0 +1,68 @@ +{ mkDerivation +, async +, base +, base-compat +, base-compat-batteries +, bytestring +, clock +, containers +, criterion +, deepseq +, HUnit +, lib +, math-functions +, process +, random +, test-framework +, test-framework-hunit +, testu01 +, tf-random +, vector +}: +mkDerivation { + pname = "splitmix"; + version = "0.1.0.4"; + sha256 = "6d065402394e7a9117093dbb4530a21342c9b1e2ec509516c8a8d0ffed98ecaa"; + revision = "1"; + editedCabalFile = "1iqlg2d4mybqwzwp67c5a1yxzd47cbp4f7mrpa6d0ckypis2akl0"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ base deepseq ]; + testHaskellDepends = [ + async + base + base-compat + base-compat-batteries + bytestring + containers + deepseq + HUnit + math-functions + process + random + test-framework + test-framework-hunit + tf-random + vector + ]; + testSystemDepends = [ testu01 ]; + benchmarkHaskellDepends = [ + base + clock + containers + criterion + random + tf-random + ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + description = "Fast Splittable PRNG"; + license = lib.licenses.bsd3; + broken = false; +} -- GitLab