From fa6303d87bb24d9da6b35e1ac681d343b490c7fb Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Wed, 11 Jan 2023 12:53:55 +0000
Subject: [PATCH] inline-r: init at 1.0.0

---
 horizon.dhall        |   1 +
 initial-packages.nix |   2 +
 pkgs/inline-r.nix    | 122 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 125 insertions(+)
 create mode 100644 pkgs/inline-r.nix

diff --git a/horizon.dhall b/horizon.dhall
index 5e0ab565..e3917028 100644
--- a/horizon.dhall
+++ b/horizon.dhall
@@ -524,6 +524,7 @@ let packages =
       , infer-license = H.callHackage "infer-license" "0.2.0"
       , ini = H.callHackage "ini" "0.4.2"
       , inline-c = H.callHackage "inline-c" "0.9.1.6"
+      , inline-r = H.callHackage "inline-r" "1.0.0"
       , insert-ordered-containers =
           H.callHackage "insert-ordered-containers" "0.2.5.1"
       , inspection-testing = H.callHackage "inspection-testing" "0.5"
diff --git a/initial-packages.nix b/initial-packages.nix
index d76778b5..5ff1a513 100644
--- a/initial-packages.nix
+++ b/initial-packages.nix
@@ -829,6 +829,8 @@ self: with pkgs.haskell.lib; {
 
   inline-c = self.callPackage (./pkgs/inline-c.nix) { };
 
+  inline-r = self.callPackage (./pkgs/inline-r.nix) { };
+
   insert-ordered-containers = self.callPackage (./pkgs/insert-ordered-containers.nix) { };
 
   inspection-testing = self.callPackage (./pkgs/inspection-testing.nix) { };
diff --git a/pkgs/inline-r.nix b/pkgs/inline-r.nix
new file mode 100644
index 00000000..04f9cffc
--- /dev/null
+++ b/pkgs/inline-r.nix
@@ -0,0 +1,122 @@
+{ mkDerivation
+, R
+, aeson
+, base
+, bytestring
+, containers
+, criterion
+, data-default-class
+, deepseq
+, directory
+, exceptions
+, filepath
+, heredoc
+, ieee754
+, inline-c
+, lib
+, mtl
+, pretty
+, primitive
+, process
+, quickcheck-assertions
+, reflection
+, setenv
+, silently
+, singletons
+, singletons-th
+, strict
+, tasty
+, tasty-expected-failure
+, tasty-golden
+, tasty-hunit
+, tasty-quickcheck
+, template-haskell
+, temporary
+, text
+, th-lift
+, th-orphans
+, transformers
+, unix
+, vector
+}:
+mkDerivation {
+  pname = "inline-r";
+  version = "1.0.0";
+  sha256 = "6ac962e2322049392428af712bc46b7319419a3b00b2749892352d489fd3fd2c";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    aeson
+    base
+    bytestring
+    containers
+    data-default-class
+    deepseq
+    exceptions
+    heredoc
+    inline-c
+    mtl
+    pretty
+    primitive
+    process
+    reflection
+    setenv
+    singletons
+    singletons-th
+    template-haskell
+    temporary
+    text
+    th-lift
+    th-orphans
+    transformers
+    unix
+    vector
+  ];
+  libraryPkgconfigDepends = [ R ];
+  testHaskellDepends = [
+    base
+    bytestring
+    directory
+    filepath
+    heredoc
+    ieee754
+    mtl
+    process
+    quickcheck-assertions
+    silently
+    singletons
+    strict
+    tasty
+    tasty-expected-failure
+    tasty-golden
+    tasty-hunit
+    tasty-quickcheck
+    template-haskell
+    temporary
+    text
+    unix
+    vector
+  ];
+  benchmarkHaskellDepends = [
+    base
+    criterion
+    filepath
+    primitive
+    process
+    singletons
+    template-haskell
+    vector
+  ];
+  enableLibraryProfiling = true;
+  enableExecutableProfiling = true;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "https://tweag.github.io/HaskellR";
+  description = "Seamlessly call R from Haskell and vice versa. No FFI required.";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab