From a6dd6d920201359064efe57bee90928ed887aee1 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Mon, 7 Nov 2022 11:34:45 +0000
Subject: [PATCH] happy: init at 1.20.0

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

diff --git a/manifest.dhall b/manifest.dhall
index f5bae53c..58d47933 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -314,6 +314,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "hackage-db" "2.1.2"
     , callHackage "hackage-security" "0.6.2.2"
     , callHackage "haddock-library" "1.11.0"
+    , callHackage "happy" "1.20.0"
     , callHackage "hashable" "1.4.1.0"
     , callHackage "hashing" "0.1.0.1"
     , callHackage "hashtables" "1.3"
diff --git a/overlay.nix b/overlay.nix
index 0c31ca04..10c53898 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -433,6 +433,8 @@ self: with pkgs.haskell.lib; {
 
   haddock-library = self.callPackage (./pkgs/haddock-library.nix) { };
 
+  happy = self.callPackage (./pkgs/happy.nix) { };
+
   hashable = self.callPackage (./pkgs/hashable.nix) { };
 
   hashing = self.callPackage (./pkgs/hashing.nix) { };
diff --git a/pkgs/happy.nix b/pkgs/happy.nix
new file mode 100644
index 00000000..5896ef4c
--- /dev/null
+++ b/pkgs/happy.nix
@@ -0,0 +1,25 @@
+{ mkDerivation, array, base, containers, lib, mtl, process }:
+mkDerivation {
+  pname = "happy";
+  version = "1.20.0";
+  sha256 = "3b1d3a8f93a2723b554d9f07b2cd136be1a7b2fcab1855b12b7aab5cbac8868c";
+  revision = "1";
+  editedCabalFile = "16dy1cv942rizxp8slnnbwi5l24ggsmy38madbin9scz38idqisx";
+  isLibrary = false;
+  isExecutable = true;
+  enableSeparateDataOutput = true;
+  executableHaskellDepends = [ array base containers mtl ];
+  testHaskellDepends = [ base process ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "https://www.haskell.org/happy/";
+  description = "Happy is a parser generator for Haskell";
+  license = lib.licenses.bsd2;
+  mainProgram = "happy";
+  broken = false;
+}
-- 
GitLab