diff --git a/horizon.dhall b/horizon.dhall index 5e0ab565197528d3a9c09a406adec387e7486713..e3917028c2d818359ae2d92a149da89afb08bee8 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 d76778b5d806568aae3be10a51019fc54e1dd4fd..5ff1a5137e5f24ff8f7dad09d309e06131d7bd12 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 0000000000000000000000000000000000000000..04f9cffc899e63af722a5910a73eaa86d3398ee2 --- /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; +}