From 28276f8dbc491efb7ac26d58c1a984844c7bbb5e Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sat, 5 Nov 2022 09:00:33 +0000
Subject: [PATCH] psqueues: init at 0.2.7.3

---
 manifest.dhall    |  1 +
 overlay.nix       |  2 ++
 pkgs/psqueues.nix | 66 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 69 insertions(+)
 create mode 100644 pkgs/psqueues.nix

diff --git a/manifest.dhall b/manifest.dhall
index c0beee6e..37dfb858 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -384,6 +384,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "profunctors" "5.6.2"
     , callHackage "prometheus-proc" "0.1.4.0"
     , callHackage "proteaaudio-sdl" "0.9.2"
+    , callHackage "psqueues" "0.2.7.3"
     , callHackage "quickcheck-dynamic" "2.0.0"
     , callHackage "quickcheck-instances" "0.3.28"
     , callHackage "rebase" "1.16"
diff --git a/overlay.nix b/overlay.nix
index a2c98d91..424d0795 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -475,6 +475,8 @@ final: prev: with pkgs.haskell.lib; {
 
   proteaaudio-sdl = prev.callPackage (./pkgs/proteaaudio-sdl.nix) { };
 
+  psqueues = prev.callPackage (./pkgs/psqueues.nix) { };
+
   quickcheck-dynamic = prev.callPackage (./pkgs/quickcheck-dynamic.nix) { };
 
   quickcheck-instances = prev.callPackage (./pkgs/quickcheck-instances.nix) { };
diff --git a/pkgs/psqueues.nix b/pkgs/psqueues.nix
new file mode 100644
index 00000000..d5dd106b
--- /dev/null
+++ b/pkgs/psqueues.nix
@@ -0,0 +1,66 @@
+{ mkDerivation
+, array
+, base
+, containers
+, criterion
+, deepseq
+, fingertree-psqueue
+, ghc-prim
+, hashable
+, HUnit
+, lib
+, mtl
+, PSQueue
+, QuickCheck
+, random
+, tagged
+, tasty
+, tasty-hunit
+, tasty-quickcheck
+, unordered-containers
+}:
+mkDerivation {
+  pname = "psqueues";
+  version = "0.2.7.3";
+  sha256 = "d09750ba3578d905b54d0b3a60a7b468910a60b3165e5de98bf6f4efae3ebfb2";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [ base deepseq ghc-prim hashable ];
+  testHaskellDepends = [
+    array
+    base
+    deepseq
+    ghc-prim
+    hashable
+    HUnit
+    QuickCheck
+    tagged
+    tasty
+    tasty-hunit
+    tasty-quickcheck
+  ];
+  benchmarkHaskellDepends = [
+    base
+    containers
+    criterion
+    deepseq
+    fingertree-psqueue
+    ghc-prim
+    hashable
+    mtl
+    PSQueue
+    random
+    unordered-containers
+  ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  description = "Pure priority search queues";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab