From b3270e4a76cd9d5559169f9bd863077a7a63d087 Mon Sep 17 00:00:00 2001
From: Max Tomago <noreply@tomagotech.com>
Date: Fri, 18 Nov 2022 01:13:09 +0000
Subject: [PATCH] haskell-src: init at 1.0.4

---
 manifest.dhall       |  1 +
 overlay.nix          |  2 ++
 pkgs/haskell-src.nix | 23 +++++++++++++++++++++++
 3 files changed, 26 insertions(+)
 create mode 100644 pkgs/haskell-src.nix

diff --git a/manifest.dhall b/manifest.dhall
index cb166e0..7d4eec3 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -158,6 +158,7 @@ in  [ callHackage "HTF" "0.15.0.0"
         "https://github.com/milloni/gray-code-0.3.1"
         (Some "f310a19e44416206633cfd084f10ffb7cfea9f1d")
         (None Text)
+    , callHackage "haskell-src" "1.0.4"
     , callCabal2nix
         "heapwords"
         "https://github.com/input-output-hk/cardano-base"
diff --git a/overlay.nix b/overlay.nix
index dec4dae..ec33595 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -97,6 +97,8 @@ final: prev: with pkgs.haskell.lib; {
 
   gray-code = prev.callPackage (./pkgs/gray-code.nix) { };
 
+  haskell-src = prev.callPackage (./pkgs/haskell-src.nix) { };
+
   heapwords = prev.callPackage (./pkgs/heapwords.nix) { };
 
   hedgehog-quickcheck = prev.callPackage (./pkgs/hedgehog-quickcheck.nix) { };
diff --git a/pkgs/haskell-src.nix b/pkgs/haskell-src.nix
new file mode 100644
index 0000000..3b56fca
--- /dev/null
+++ b/pkgs/haskell-src.nix
@@ -0,0 +1,23 @@
+{ mkDerivation, array, base, happy, lib, pretty, syb }:
+mkDerivation {
+  pname = "haskell-src";
+  version = "1.0.4";
+  sha256 = "8bc77695f9cc113933048409d2ed3bf2a3b947e18312a23b0dbb7838d086f3ea";
+  revision = "1";
+  editedCabalFile = "0dfjzq0sxxcalqxygp2svx4890qx8b4amad0xldwy1f4xrp3lsnb";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [ array base pretty syb ];
+  libraryToolDepends = [ happy ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  description = "Support for manipulating Haskell source code";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab