From 59e951e521831f61b315dfeedacfc5dfe43f49b5 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sat, 5 Nov 2022 11:53:06 +0000
Subject: [PATCH] distributive: init at 0.6.2.1

---
 manifest.dhall        |  1 +
 overlay.nix           |  2 ++
 pkgs/distributive.nix | 34 ++++++++++++++++++++++++++++++++++
 3 files changed, 37 insertions(+)
 create mode 100644 pkgs/distributive.nix

diff --git a/manifest.dhall b/manifest.dhall
index e7abfcf0..7b92e4c1 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -170,6 +170,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
         (Some "69e8ae036b047fae105c1fe990e175a7572a3eba")
         (Some "dirforest")
     , callHackage "distribution-nixpkgs" "1.7.0"
+    , callHackage "distributive" "0.6.2.1"
     , callCabal2nix
         "doctest"
         "https://github.com/sol/doctest"
diff --git a/overlay.nix b/overlay.nix
index 89025c61..9fadc048 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -175,6 +175,8 @@ final: prev: with pkgs.haskell.lib; {
 
   distribution-nixpkgs = prev.callPackage (./pkgs/distribution-nixpkgs.nix) { };
 
+  distributive = prev.callPackage (./pkgs/distributive.nix) { };
+
   doctemplates = prev.callPackage (./pkgs/doctemplates.nix) { };
 
   doctest = prev.callPackage (./pkgs/doctest.nix) { };
diff --git a/pkgs/distributive.nix b/pkgs/distributive.nix
new file mode 100644
index 00000000..fb5de511
--- /dev/null
+++ b/pkgs/distributive.nix
@@ -0,0 +1,34 @@
+{ mkDerivation
+, base
+, base-orphans
+, generic-deriving
+, hspec
+, hspec-discover
+, lib
+, tagged
+, transformers
+}:
+mkDerivation {
+  pname = "distributive";
+  version = "0.6.2.1";
+  sha256 = "d7351392e078f58caa46630a4b9c643e1e2e9dddee45848c5c8358e7b1316b91";
+  revision = "1";
+  editedCabalFile = "033890dfyd23dh7g7px863l0hr1b881jnhv4kgwaq16a3iagb68g";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [ base base-orphans tagged transformers ];
+  testHaskellDepends = [ base generic-deriving hspec ];
+  testToolDepends = [ hspec-discover ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "http://github.com/ekmett/distributive/";
+  description = "Distributive functors -- Dual to Traversable";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab