From 3ee3a5812935e6b938c37cc9d8b912a918116a09 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marijan=20Petri=C4=8Devi=C4=87?=
 <marijan.petricevic94@gmail.com>
Date: Thu, 26 Jan 2023 13:15:41 -0500
Subject: [PATCH] jose: init at 0.9

---
 horizon.dhall        |  1 +
 initial-packages.nix |  2 +
 pkgs/jose.nix        | 87 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 90 insertions(+)
 create mode 100644 pkgs/jose.nix

diff --git a/horizon.dhall b/horizon.dhall
index 7e102a59..6191bb24 100644
--- a/horizon.dhall
+++ b/horizon.dhall
@@ -554,6 +554,7 @@ let packages =
       , iso8601-time = H.callHackage "iso8601-time" "0.1.5"
       , iwlib = H.callHackage "iwlib" "0.1.2"
       , jira-wiki-markup = H.callHackage "jira-wiki-markup" "1.4.0"
+      , jose = H.callHackage "jose" "0.9"
       , js-chart = H.callHackage "js-chart" "2.9.4.1"
       , js-dgtable = H.callHackage "js-dgtable" "0.5.2"
       , js-flot = H.callHackage "js-flot" "0.8.3"
diff --git a/initial-packages.nix b/initial-packages.nix
index 43975c19..6e558d71 100644
--- a/initial-packages.nix
+++ b/initial-packages.nix
@@ -873,6 +873,8 @@ self: with pkgs.haskell.lib; {
 
   jira-wiki-markup = self.callPackage (./pkgs/jira-wiki-markup.nix) { };
 
+  jose = self.callPackage (./pkgs/jose.nix) { };
+
   js-chart = self.callPackage (./pkgs/js-chart.nix) { };
 
   js-dgtable = self.callPackage (./pkgs/js-dgtable.nix) { };
diff --git a/pkgs/jose.nix b/pkgs/jose.nix
new file mode 100644
index 00000000..94881358
--- /dev/null
+++ b/pkgs/jose.nix
@@ -0,0 +1,87 @@
+{ mkDerivation
+, QuickCheck
+, aeson
+, base
+, base64-bytestring
+, bytestring
+, concise
+, containers
+, cryptonite
+, hspec
+, lens
+, lib
+, memory
+, monad-time
+, mtl
+, network-uri
+, pem
+, quickcheck-instances
+, tasty
+, tasty-hspec
+, tasty-quickcheck
+, template-haskell
+, text
+, time
+, x509
+}:
+mkDerivation {
+  pname = "jose";
+  version = "0.9";
+  sha256 = "92f919239d02c9f3369d885ba9a3a9fdf14f352e2dc281c3f50a5993df00314e";
+  isLibrary = true;
+  isExecutable = true;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    aeson
+    base
+    base64-bytestring
+    bytestring
+    concise
+    containers
+    cryptonite
+    lens
+    memory
+    monad-time
+    mtl
+    network-uri
+    QuickCheck
+    quickcheck-instances
+    template-haskell
+    text
+    time
+    x509
+  ];
+  testHaskellDepends = [
+    aeson
+    base
+    base64-bytestring
+    bytestring
+    concise
+    containers
+    cryptonite
+    hspec
+    lens
+    mtl
+    network-uri
+    pem
+    QuickCheck
+    quickcheck-instances
+    tasty
+    tasty-hspec
+    tasty-quickcheck
+    text
+    time
+    x509
+  ];
+  enableLibraryProfiling = true;
+  enableExecutableProfiling = true;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/frasertweedale/hs-jose";
+  description = "JSON Object Signing and Encryption (JOSE) and JSON Web Token (JWT) library";
+  license = lib.licenses.asl20;
+  broken = false;
+}
-- 
GitLab