From 336b830f527b30b37ee03bdf10e99d81acd657d7 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:11:20 -0500
Subject: [PATCH] authenticate-oauth: init at 1.7

---
 horizon.dhall               |  1 +
 initial-packages.nix        |  2 ++
 pkgs/authenticate-oauth.nix | 54 +++++++++++++++++++++++++++++++++++++
 3 files changed, 57 insertions(+)
 create mode 100644 pkgs/authenticate-oauth.nix

diff --git a/horizon.dhall b/horizon.dhall
index efb5960a..ed4fc705 100644
--- a/horizon.dhall
+++ b/horizon.dhall
@@ -112,6 +112,7 @@ let packages =
       , attoparsec-binary = H.callHackage "attoparsec-binary" "0.2"
       , attoparsec-iso8601 = H.callHackage "attoparsec-iso8601" "1.1.0.0"
       , attoparsec = H.callHackage "attoparsec" "0.14.4"
+      , authenticate-oauth = H.callHackage "authenticate-oauth" "1.7"
       , auto-update = H.callHackage "auto-update" "0.1.6"
       , autodocodec = H.callHackage "autodocodec" "0.2.0.1"
       , autodocodec-schema = H.callHackage "autodocodec-schema" "0.1.0.2"
diff --git a/initial-packages.nix b/initial-packages.nix
index 6e154bde..7aac8e63 100644
--- a/initial-packages.nix
+++ b/initial-packages.nix
@@ -123,6 +123,8 @@ self: with pkgs.haskell.lib; {
 
   attoparsec-iso8601 = self.callPackage (./pkgs/attoparsec-iso8601.nix) { };
 
+  authenticate-oauth = self.callPackage (./pkgs/authenticate-oauth.nix) { };
+
   auto-update = self.callPackage (./pkgs/auto-update.nix) { };
 
   autodocodec = self.callPackage (./pkgs/autodocodec.nix) { };
diff --git a/pkgs/authenticate-oauth.nix b/pkgs/authenticate-oauth.nix
new file mode 100644
index 00000000..8575a50d
--- /dev/null
+++ b/pkgs/authenticate-oauth.nix
@@ -0,0 +1,54 @@
+{ mkDerivation
+, RSA
+, SHA
+, base
+, base64-bytestring
+, blaze-builder
+, bytestring
+, crypto-pubkey-types
+, data-default
+, http-client
+, http-types
+, lib
+, random
+, time
+, transformers
+, transformers-compat
+}:
+mkDerivation {
+  pname = "authenticate-oauth";
+  version = "1.7";
+  sha256 = "746ff695fec1bd7c7b90f1952847ce3453fadf0f18a31db206753360b3219b78";
+  revision = "1";
+  editedCabalFile = "198xm2qdaqwg2m9kgrkw5gdk2bh19mmj6c4d5fsbpcjnhxlh6axg";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    base
+    base64-bytestring
+    blaze-builder
+    bytestring
+    crypto-pubkey-types
+    data-default
+    http-client
+    http-types
+    random
+    RSA
+    SHA
+    time
+    transformers
+    transformers-compat
+  ];
+  enableLibraryProfiling = true;
+  enableExecutableProfiling = true;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "http://github.com/yesodweb/authenticate";
+  description = "Library to authenticate with OAuth for Haskell web applications";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab