From fe83b33a8425859a88a320c189f8c45b080ccc67 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Mon, 7 Nov 2022 14:42:04 +0000
Subject: [PATCH] pretty-hex: init at 1.1

---
 manifest.dhall      |  1 +
 overlay.nix         |  2 ++
 pkgs/pretty-hex.nix | 20 ++++++++++++++++++++
 3 files changed, 23 insertions(+)
 create mode 100644 pkgs/pretty-hex.nix

diff --git a/manifest.dhall b/manifest.dhall
index 9b301259..7bc91321 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -571,6 +571,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "postgresql-migration" "0.2.1.4"
     , callHackage "postgresql-simple" "0.6.4"
     , callHackage "postgresql-simple-migration" "0.1.15.0"
+    , callHackage "pretty-hex" "1.1"
     , callHackage "pretty-show" "1.10"
     , callHackage "pretty-simple" "4.1.1.0"
     , callHackage "prettyprinter-ansi-terminal" "1.1.3"
diff --git a/overlay.nix b/overlay.nix
index 650c2628..bf9f8416 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -867,6 +867,8 @@ self: with pkgs.haskell.lib; {
 
   postgresql-simple-migration = self.callPackage (./pkgs/postgresql-simple-migration.nix) { };
 
+  pretty-hex = self.callPackage (./pkgs/pretty-hex.nix) { };
+
   pretty-show = self.callPackage (./pkgs/pretty-show.nix) { };
 
   pretty-simple = self.callPackage (./pkgs/pretty-simple.nix) { };
diff --git a/pkgs/pretty-hex.nix b/pkgs/pretty-hex.nix
new file mode 100644
index 00000000..4f7de0d3
--- /dev/null
+++ b/pkgs/pretty-hex.nix
@@ -0,0 +1,20 @@
+{ mkDerivation, base, bytestring, lib }:
+mkDerivation {
+  pname = "pretty-hex";
+  version = "1.1";
+  sha256 = "27c78f299151a9a844f4a2c0f629fb99160901e78f78a688cb088bd532501731";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [ base bytestring ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  description = "A library for hex dumps of ByteStrings";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab