From bb8e429d0f99251b1c00900495c2cfaec4740bb5 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Mon, 7 Nov 2022 11:50:51 +0000
Subject: [PATCH] byteorder: init at 1.0.4

---
 manifest.dhall     |  1 +
 overlay.nix        |  2 ++
 pkgs/byteorder.nix | 21 +++++++++++++++++++++
 3 files changed, 24 insertions(+)
 create mode 100644 pkgs/byteorder.nix

diff --git a/manifest.dhall b/manifest.dhall
index bd6bac82..b6d00919 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -120,6 +120,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "brick" "1.3"
     , callHackage "bsb-http-chunked" "0.0.0.4"
     , callHackage "byteable" "0.1.1"
+    , callHackage "byteorder" "1.0.4"
     , callHackage "bytes" "0.17.2"
     , callHackage "cabal-doctest" "1.0.9"
     , callHackage "cabal-install" "3.8.1.0"
diff --git a/overlay.nix b/overlay.nix
index 5d0574b2..ef1ef08e 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -133,6 +133,8 @@ self: with pkgs.haskell.lib; {
 
   byteable = self.callPackage (./pkgs/byteable.nix) { };
 
+  byteorder = self.callPackage (./pkgs/byteorder.nix) { };
+
   bytes = self.callPackage (./pkgs/bytes.nix) { };
 
   cabal-doctest = self.callPackage (./pkgs/cabal-doctest.nix) { };
diff --git a/pkgs/byteorder.nix b/pkgs/byteorder.nix
new file mode 100644
index 00000000..ea246308
--- /dev/null
+++ b/pkgs/byteorder.nix
@@ -0,0 +1,21 @@
+{ mkDerivation, base, lib }:
+mkDerivation {
+  pname = "byteorder";
+  version = "1.0.4";
+  sha256 = "bd20bbb586947f99c38a4c93d9d0266f49f6fc581767b51ba568f6d5d52d2919";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [ base ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "http://community.haskell.org/~aslatter/code/byteorder";
+  description = "Exposes the native endianness or byte ordering of the system";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab