From 928ad47d2248958c7c5eaad49d52f96c4c27721c Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Mon, 7 Nov 2022 11:34:20 +0000
Subject: [PATCH] alex: init at 3.2.7.1

---
 manifest.dhall |  1 +
 overlay.nix    |  2 ++
 pkgs/alex.nix  | 32 ++++++++++++++++++++++++++++++++
 3 files changed, 35 insertions(+)
 create mode 100644 pkgs/alex.nix

diff --git a/manifest.dhall b/manifest.dhall
index 0fcf8df3..f5bae53c 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -78,6 +78,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "aeson" "2.1.0.0"
     , callHackage "aeson-pretty" "0.8.9"
     , callHackage "aeson-yaml" "1.1.0.1"
+    , callHackage "alex" "3.2.7.1"
     , callHackage "ansi-terminal" "0.11.3"
     , callHackage "ansi-wl-pprint" "0.6.9"
     , callHackage "apecs" "0.9.4"
diff --git a/overlay.nix b/overlay.nix
index 3b76a99b..0c31ca04 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -49,6 +49,8 @@ self: with pkgs.haskell.lib; {
 
   aeson-yaml = self.callPackage (./pkgs/aeson-yaml.nix) { };
 
+  alex = self.callPackage (./pkgs/alex.nix) { };
+
   ansi-terminal = self.callPackage (./pkgs/ansi-terminal.nix) { };
 
   ansi-wl-pprint = self.callPackage (./pkgs/ansi-wl-pprint.nix) { };
diff --git a/pkgs/alex.nix b/pkgs/alex.nix
new file mode 100644
index 00000000..225ece93
--- /dev/null
+++ b/pkgs/alex.nix
@@ -0,0 +1,32 @@
+{ mkDerivation
+, array
+, base
+, containers
+, directory
+, happy
+, lib
+, process
+}:
+mkDerivation {
+  pname = "alex";
+  version = "3.2.7.1";
+  sha256 = "9bd2f1a27e8f1b2ffdb5b2fbd3ed82b6f0e85191459a1b24ffcbef4e68a81bec";
+  isLibrary = false;
+  isExecutable = true;
+  enableSeparateDataOutput = true;
+  executableHaskellDepends = [ array base containers directory ];
+  executableToolDepends = [ happy ];
+  testHaskellDepends = [ base process ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "http://www.haskell.org/alex/";
+  description = "Alex is a tool for generating lexical analysers in Haskell";
+  license = lib.licenses.bsd3;
+  mainProgram = "alex";
+  broken = false;
+}
-- 
GitLab