diff options
Diffstat (limited to 'pkgs/development/libraries/haskell')
9 files changed, 101 insertions, 7 deletions
diff --git a/pkgs/development/libraries/haskell/Boolean/default.nix b/pkgs/development/libraries/haskell/Boolean/default.nix new file mode 100644 index 000000000000..664ea6039951 --- /dev/null +++ b/pkgs/development/libraries/haskell/Boolean/default.nix @@ -0,0 +1,13 @@ +{cabal}: + +cabal.mkDerivation (self : { + pname = "Boolean"; + version = "0.0.1"; + sha256 = "dafcfb2e9d7f7aa24a3d3ceb385424176297cdf6f6044028d42d0fea1cae7765"; + meta = { + description = "Generalized booleans"; + license = "BSD"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/Graphalyze/default.nix b/pkgs/development/libraries/haskell/Graphalyze/default.nix new file mode 100644 index 000000000000..0eca1c7edfc1 --- /dev/null +++ b/pkgs/development/libraries/haskell/Graphalyze/default.nix @@ -0,0 +1,13 @@ +{cabal, bktrees, fgl, graphviz, pandoc}: + +cabal.mkDerivation (self : { + pname = "Graphalyze"; + version = "0.10.0.1"; + sha256 = "8f273de41c7c340d2c7c8b4797d30535e4038616055099cc52bc5d21c10d9f22"; + propagatedBuildInputs = [bktrees fgl graphviz pandoc ]; + meta = { + description = "A library to use graph theory analysis"; + license = "OtherLicene"; + }; +}) + diff --git a/pkgs/development/libraries/haskell/MemoTrie/default.nix b/pkgs/development/libraries/haskell/MemoTrie/default.nix new file mode 100644 index 000000000000..f826d0b13e08 --- /dev/null +++ b/pkgs/development/libraries/haskell/MemoTrie/default.nix @@ -0,0 +1,13 @@ +{cabal}: + +cabal.mkDerivation (self : { + pname = "MemoTrie"; + version = "0.4.9"; + sha256 = "f17dd0b73c1a11a6edb38fb6f457b9687f2e93aa4677e90f7ec482a528ac02e7"; + meta = { + description = "Trie-based memo functions"; + license = "BSD"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/bktrees/default.nix b/pkgs/development/libraries/haskell/bktrees/default.nix new file mode 100644 index 000000000000..03452a99f2bb --- /dev/null +++ b/pkgs/development/libraries/haskell/bktrees/default.nix @@ -0,0 +1,12 @@ +{cabal}: + +cabal.mkDerivation (self : { + pname = "bktrees"; + version = "0.3"; + sha256 = "ddef9fbf5114175cefe2908cd4360a4b94cbc91daac6d5194a8911bacaa1a5da"; + meta = { + description = "Burkhard-Keller trees sets implementation"; + license = "BSD3"; + }; +}) + diff --git a/pkgs/development/libraries/haskell/cabal/cabal.nix b/pkgs/development/libraries/haskell/cabal/cabal.nix index 87e2563bc7b4..d46b2580918f 100644 --- a/pkgs/development/libraries/haskell/cabal/cabal.nix +++ b/pkgs/development/libraries/haskell/cabal/cabal.nix @@ -102,12 +102,15 @@ GHC_PACKAGE_PATH=$installedPkgConf ghc-pkg --global register $pkgConf --force fi - ensureDir $out/nix-support - ln -s $out/nix-support/propagated-build-native-inputs $out/nix-support/propagated-user-env-packages - eval "$postInstall" ''; + postFixup = '' + if test -f $out/nix-support/propagated-build-native-inputs; then + ln -s $out/nix-support/propagated-build-native-inputs $out/nix-support/propagated-user-env-packages + fi + ''; + # We inherit stdenv and ghc so that they can be used # in Cabal derivations. inherit stdenv ghc; diff --git a/pkgs/development/libraries/haskell/colour/default.nix b/pkgs/development/libraries/haskell/colour/default.nix new file mode 100644 index 000000000000..661f1507ab18 --- /dev/null +++ b/pkgs/development/libraries/haskell/colour/default.nix @@ -0,0 +1,12 @@ +{cabal}: + +cabal.mkDerivation (self : { + pname = "colour"; + version = "2.3.1"; + sha256 = "58cf12b8abf7d01a752b1b778b64cc406903874702e3475d65c2aa35689fa49b"; + meta = { + description = "Data type, conversion and composition of colours"; + license = "OtherLicense"; + }; +}) + diff --git a/pkgs/development/libraries/haskell/graphviz/default.nix b/pkgs/development/libraries/haskell/graphviz/default.nix new file mode 100644 index 000000000000..f747d81e6c6d --- /dev/null +++ b/pkgs/development/libraries/haskell/graphviz/default.nix @@ -0,0 +1,13 @@ +{cabal, colour, fgl, polyparse, transformers, QuickCheck}: + +cabal.mkDerivation (self : { + pname = "graphviz"; + version = "2999.10.0.1"; + sha256 = "5a3aebd3874303dcf554aef3bf511dd22e72053a9672c823d1d820d2b90ca076"; + propagatedBuildInputs = [colour fgl polyparse transformers QuickCheck]; + meta = { + description = "Bindings for the Dot language (Graphviz)"; + license = "BSD3"; + }; +}) + diff --git a/pkgs/development/libraries/haskell/vector-space/default.nix b/pkgs/development/libraries/haskell/vector-space/default.nix new file mode 100644 index 000000000000..d502bfcbf8a7 --- /dev/null +++ b/pkgs/development/libraries/haskell/vector-space/default.nix @@ -0,0 +1,14 @@ +{cabal, Boolean, MemoTrie}: + +cabal.mkDerivation (self : { + pname = "vector-space"; + version = "0.5.9"; + sha256 = "39045384ee1f37f92fc8a84b75eb63091d083298f7be5f51f81112dd42a553b0"; + propagatedBuildInputs = [Boolean MemoTrie]; + meta = { + description = "Vector & affine spaces, linear maps, and derivatives"; + license = "BSD"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/vty/default.nix b/pkgs/development/libraries/haskell/vty/default.nix index a38ee70ce34b..46f39d1e0a69 100644 --- a/pkgs/development/libraries/haskell/vty/default.nix +++ b/pkgs/development/libraries/haskell/vty/default.nix @@ -1,10 +1,11 @@ -{cabal, utf8String, terminfo}: +{cabal, utf8String, terminfo, deepseq, mtl, parallel, parsec, vectorSpace}: cabal.mkDerivation (self : { pname = "vty"; - version = "3.1.8.4"; - sha256 = "9a006e77bb4f032613e059eea7bc4d92cbc7943449fb9c7269a061ddd9b3d82b"; - propagatedBuildInputs = [utf8String terminfo]; + version = "4.4.0.0"; + sha256 = "bf032022a72831e263d2d48d0a7a3191fb1174554cd714902a60cb0f39afe312"; + propagatedBuildInputs = + [utf8String terminfo deepseq mtl parallel parsec vectorSpace]; meta = { description = "A simple terminal access library"; }; |