From 1dfe33f4fee1709de164ac5481590677b323a267 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sun, 6 Nov 2022 21:23:38 +0000
Subject: [PATCH] dlist: init at 1.0

---
 manifest.dhall |  1 +
 overlay.nix    |  2 ++
 pkgs/dlist.nix | 22 ++++++++++++++++++++++
 3 files changed, 25 insertions(+)
 create mode 100644 pkgs/dlist.nix

diff --git a/manifest.dhall b/manifest.dhall
index 6ec19792..338c19cc 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -196,6 +196,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
         (Some "dirforest")
     , callHackage "distribution-nixpkgs" "1.7.0"
     , callHackage "distributive" "0.6.2.1"
+    , callHackage "dlist" "1.0"
     , callCabal2nix
         "doctest"
         "https://github.com/sol/doctest"
diff --git a/overlay.nix b/overlay.nix
index e05c3971..4aae2f2a 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -227,6 +227,8 @@ self: with pkgs.haskell.lib; {
 
   distributive = self.callPackage (./pkgs/distributive.nix) { };
 
+  dlist = self.callPackage (./pkgs/dlist.nix) { };
+
   doctemplates = self.callPackage (./pkgs/doctemplates.nix) { };
 
   doctest = self.callPackage (./pkgs/doctest.nix) { };
diff --git a/pkgs/dlist.nix b/pkgs/dlist.nix
new file mode 100644
index 00000000..2a9bf067
--- /dev/null
+++ b/pkgs/dlist.nix
@@ -0,0 +1,22 @@
+{ mkDerivation, base, deepseq, lib, QuickCheck }:
+mkDerivation {
+  pname = "dlist";
+  version = "1.0";
+  sha256 = "173d637328bb173fcc365f30d29ff4a94292a1e0e5558aeb3dfc11de81510115";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [ base deepseq ];
+  testHaskellDepends = [ base QuickCheck ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/spl/dlist";
+  description = "Difference lists";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab