Skip to content

Commit

Permalink
Automatic Update
Browse files Browse the repository at this point in the history
  • Loading branch information
IOHK committed Dec 25, 2024
1 parent fa91f38 commit 02ea241
Show file tree
Hide file tree
Showing 20 changed files with 970 additions and 1 deletion.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3536,6 +3536,7 @@ with builtins; mapAttrs (_: mapAttrs (_: data: rec {
"cl3" = import ./nix/cl3.nix;
"cl3-hmatrix-interface" = import ./nix/cl3-hmatrix-interface.nix;
"cl3-linear-interface" = import ./nix/cl3-linear-interface.nix;
"cl3-posit" = import ./nix/cl3-posit.nix;
"clac" = import ./nix/clac.nix;
"clafer" = import ./nix/clafer.nix;
"claferIG" = import ./nix/clafer_I_G.nix;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{ system
, compiler
, flags
, pkgs
, hsPkgs
, pkgconfPkgs
, errorHandler
, config
, ... }:
{
flags = {
do-no-derived-instances = true;
do-no-random = false;
do-no-storable = false;
do-liquid = false;
};
package = {
specVersion = "1.10";
identifier = { name = "cl3-posit"; version = "1.0.0.0"; };
license = "BSD-3-Clause";
copyright = "Copyright (C) 2017-2024 Nathan Waivio";
maintainer = "Nathan Waivio <[email protected]>";
author = "Nathan Waivio";
homepage = "https://github.com/waivio/cl3-posit";
url = "";
synopsis = "Clifford Algebra of three dimensional space, implemented with Posit numbers.";
description = "Haskell Library implementing standard functions for the Algebra of Physical Space Cl(3,0), R approximated by Posit Numbers.";
buildType = "Simple";
};
components = {
"library" = {
depends = (([
(hsPkgs."posit" or (errorHandler.buildDepError "posit"))
(hsPkgs."cl3" or (errorHandler.buildDepError "cl3"))
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
] ++ pkgs.lib.optional (!flags.do-no-random) (hsPkgs."random" or (errorHandler.buildDepError "random"))) ++ pkgs.lib.optional (!flags.do-liquid) (hsPkgs."base" or (errorHandler.buildDepError "base"))) ++ pkgs.lib.optionals (flags.do-liquid) [
(hsPkgs."liquid-base" or (errorHandler.buildDepError "liquid-base"))
(hsPkgs."liquidhaskell" or (errorHandler.buildDepError "liquidhaskell"))
];
buildable = true;
};
tests = {
"test-cl3" = {
depends = [
(hsPkgs."cl3-posit" or (errorHandler.buildDepError "cl3-posit"))
(hsPkgs."posit" or (errorHandler.buildDepError "posit"))
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."random" or (errorHandler.buildDepError "random"))
(hsPkgs."time" or (errorHandler.buildDepError "time"))
];
buildable = true;
};
};
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
{ system
, compiler
, flags
, pkgs
, hsPkgs
, pkgconfPkgs
, errorHandler
, config
, ... }:
{
flags = { disable-doctest = false; };
package = {
specVersion = "1.24";
identifier = { name = "hasktorch"; version = "0.2.1.0"; };
license = "BSD-3-Clause";
copyright = "2019 Austin Huang";
maintainer = "[email protected]";
author = "Hasktorch Contributor Team";
homepage = "https://github.com/hasktorch/hasktorch#readme";
url = "";
synopsis = "Haskell bindings to libtorch, supporting both typed and untyped tensors.";
description = "Hasktorch is a library for tensors and neural networks in Haskell. It is an independent open source community project which leverages the core C++ libraries shared by PyTorch.";
buildType = "Custom";
setup-depends = [
(hsPkgs.pkgsBuildBuild.base or (pkgs.pkgsBuildBuild.base or (errorHandler.setupDepError "base")))
(hsPkgs.pkgsBuildBuild.Cabal or (pkgs.pkgsBuildBuild.Cabal or (errorHandler.setupDepError "Cabal")))
(hsPkgs.pkgsBuildBuild.cabal-doctest or (pkgs.pkgsBuildBuild.cabal-doctest or (errorHandler.setupDepError "cabal-doctest")))
];
};
components = {
"library" = {
depends = [
(hsPkgs."async" or (errorHandler.buildDepError "async"))
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."libtorch-ffi" or (errorHandler.buildDepError "libtorch-ffi"))
(hsPkgs."libtorch-ffi-helper" or (errorHandler.buildDepError "libtorch-ffi-helper"))
(hsPkgs."finite-typelits" or (errorHandler.buildDepError "finite-typelits"))
(hsPkgs."ghc-typelits-extra" or (errorHandler.buildDepError "ghc-typelits-extra"))
(hsPkgs."ghc-typelits-knownnat" or (errorHandler.buildDepError "ghc-typelits-knownnat"))
(hsPkgs."ghc-typelits-natnormalise" or (errorHandler.buildDepError "ghc-typelits-natnormalise"))
(hsPkgs."mtl" or (errorHandler.buildDepError "mtl"))
(hsPkgs."safe-exceptions" or (errorHandler.buildDepError "safe-exceptions"))
(hsPkgs."random" or (errorHandler.buildDepError "random"))
(hsPkgs."reflection" or (errorHandler.buildDepError "reflection"))
(hsPkgs."stm" or (errorHandler.buildDepError "stm"))
(hsPkgs."JuicyPixels" or (errorHandler.buildDepError "JuicyPixels"))
(hsPkgs."vector" or (errorHandler.buildDepError "vector"))
(hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring"))
(hsPkgs."safe-exceptions" or (errorHandler.buildDepError "safe-exceptions"))
(hsPkgs."zlib" or (errorHandler.buildDepError "zlib"))
(hsPkgs."pipes" or (errorHandler.buildDepError "pipes"))
(hsPkgs."pipes-group" or (errorHandler.buildDepError "pipes-group"))
(hsPkgs."pipes-concurrency" or (errorHandler.buildDepError "pipes-concurrency"))
(hsPkgs."pipes-safe" or (errorHandler.buildDepError "pipes-safe"))
(hsPkgs."pipes-bytestring" or (errorHandler.buildDepError "pipes-bytestring"))
(hsPkgs."pipes-csv" or (errorHandler.buildDepError "pipes-csv"))
(hsPkgs."lens-family-core" or (errorHandler.buildDepError "lens-family-core"))
(hsPkgs."cassava" or (errorHandler.buildDepError "cassava"))
(hsPkgs."lifted-async" or (errorHandler.buildDepError "lifted-async"))
(hsPkgs."monad-control" or (errorHandler.buildDepError "monad-control"))
(hsPkgs."foldl" or (errorHandler.buildDepError "foldl"))
(hsPkgs."transformers-base" or (errorHandler.buildDepError "transformers-base"))
(hsPkgs."array" or (errorHandler.buildDepError "array"))
(hsPkgs."data-default-class" or (errorHandler.buildDepError "data-default-class"))
(hsPkgs."containers" or (errorHandler.buildDepError "containers"))
(hsPkgs."inline-c" or (errorHandler.buildDepError "inline-c"))
(hsPkgs."vector-sized" or (errorHandler.buildDepError "vector-sized"))
(hsPkgs."template-haskell" or (errorHandler.buildDepError "template-haskell"))
(hsPkgs."megaparsec" or (errorHandler.buildDepError "megaparsec"))
(hsPkgs."half" or (errorHandler.buildDepError "half"))
(hsPkgs."constraints" or (errorHandler.buildDepError "constraints"))
];
buildable = true;
};
tests = {
"spec" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."ghc-typelits-extra" or (errorHandler.buildDepError "ghc-typelits-extra"))
(hsPkgs."ghc-typelits-knownnat" or (errorHandler.buildDepError "ghc-typelits-knownnat"))
(hsPkgs."ghc-typelits-natnormalise" or (errorHandler.buildDepError "ghc-typelits-natnormalise"))
(hsPkgs."hasktorch" or (errorHandler.buildDepError "hasktorch"))
(hsPkgs."hspec" or (errorHandler.buildDepError "hspec"))
(hsPkgs."libtorch-ffi" or (errorHandler.buildDepError "libtorch-ffi"))
(hsPkgs."mtl" or (errorHandler.buildDepError "mtl"))
(hsPkgs."reflection" or (errorHandler.buildDepError "reflection"))
(hsPkgs."safe-exceptions" or (errorHandler.buildDepError "safe-exceptions"))
(hsPkgs."QuickCheck" or (errorHandler.buildDepError "QuickCheck"))
(hsPkgs."directory" or (errorHandler.buildDepError "directory"))
(hsPkgs."JuicyPixels" or (errorHandler.buildDepError "JuicyPixels"))
(hsPkgs."inline-c-cpp" or (errorHandler.buildDepError "inline-c-cpp"))
(hsPkgs."async" or (errorHandler.buildDepError "async"))
(hsPkgs."pipes" or (errorHandler.buildDepError "pipes"))
(hsPkgs."random" or (errorHandler.buildDepError "random"))
(hsPkgs."vector-sized" or (errorHandler.buildDepError "vector-sized"))
(hsPkgs."lens-family-core" or (errorHandler.buildDepError "lens-family-core"))
(hsPkgs."data-default-class" or (errorHandler.buildDepError "data-default-class"))
(hsPkgs."half" or (errorHandler.buildDepError "half"))
];
buildable = true;
};
"doctests" = {
depends = [
(hsPkgs."doctest" or (errorHandler.buildDepError "doctest"))
(hsPkgs."async" or (errorHandler.buildDepError "async"))
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."libtorch-ffi" or (errorHandler.buildDepError "libtorch-ffi"))
(hsPkgs."finite-typelits" or (errorHandler.buildDepError "finite-typelits"))
(hsPkgs."ghc-typelits-extra" or (errorHandler.buildDepError "ghc-typelits-extra"))
(hsPkgs."ghc-typelits-knownnat" or (errorHandler.buildDepError "ghc-typelits-knownnat"))
(hsPkgs."ghc-typelits-natnormalise" or (errorHandler.buildDepError "ghc-typelits-natnormalise"))
(hsPkgs."mtl" or (errorHandler.buildDepError "mtl"))
(hsPkgs."safe-exceptions" or (errorHandler.buildDepError "safe-exceptions"))
(hsPkgs."random" or (errorHandler.buildDepError "random"))
(hsPkgs."reflection" or (errorHandler.buildDepError "reflection"))
(hsPkgs."stm" or (errorHandler.buildDepError "stm"))
(hsPkgs."JuicyPixels" or (errorHandler.buildDepError "JuicyPixels"))
(hsPkgs."vector" or (errorHandler.buildDepError "vector"))
(hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring"))
(hsPkgs."safe-exceptions" or (errorHandler.buildDepError "safe-exceptions"))
(hsPkgs."zlib" or (errorHandler.buildDepError "zlib"))
(hsPkgs."inline-c" or (errorHandler.buildDepError "inline-c"))
(hsPkgs."hasktorch" or (errorHandler.buildDepError "hasktorch"))
];
buildable = if system.isOsx || flags.disable-doctest
then false
else true;
};
};
benchmarks = {
"runtime" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."criterion" or (errorHandler.buildDepError "criterion"))
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
(hsPkgs."hmatrix" or (errorHandler.buildDepError "hmatrix"))
(hsPkgs."mwc-random" or (errorHandler.buildDepError "mwc-random"))
(hsPkgs."vector" or (errorHandler.buildDepError "vector"))
(hsPkgs."matrix" or (errorHandler.buildDepError "matrix"))
(hsPkgs."split" or (errorHandler.buildDepError "split"))
(hsPkgs."primitive" or (errorHandler.buildDepError "primitive"))
(hsPkgs."hasktorch" or (errorHandler.buildDepError "hasktorch"))
(hsPkgs."libtorch-ffi" or (errorHandler.buildDepError "libtorch-ffi"))
];
buildable = true;
};
"alloc" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
(hsPkgs."hmatrix" or (errorHandler.buildDepError "hmatrix"))
(hsPkgs."mwc-random" or (errorHandler.buildDepError "mwc-random"))
(hsPkgs."vector" or (errorHandler.buildDepError "vector"))
(hsPkgs."weigh" or (errorHandler.buildDepError "weigh"))
(hsPkgs."split" or (errorHandler.buildDepError "split"))
(hsPkgs."primitive" or (errorHandler.buildDepError "primitive"))
(hsPkgs."hasktorch" or (errorHandler.buildDepError "hasktorch"))
(hsPkgs."libtorch-ffi" or (errorHandler.buildDepError "libtorch-ffi"))
];
buildable = true;
};
};
};
}
Loading

0 comments on commit 02ea241

Please sign in to comment.