diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2013-06-17 22:08:16 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2013-06-17 22:08:16 +0200 |
commit | 6bcf790d055944fa56129cc4f5e1ac5374e6aea6 (patch) | |
tree | 11ef08e17443d2e87429254b9dbf1331225004bc /pkgs/development/libraries | |
parent | afdc7fdfb6ff0380c8c46cf56afbe8611f34ba7d (diff) | |
parent | 0b875c8706276b2625e0dc8efd8372ac84fef5c4 (diff) | |
download | nixpkgs-6bcf790d055944fa56129cc4f5e1ac5374e6aea6.tar nixpkgs-6bcf790d055944fa56129cc4f5e1ac5374e6aea6.tar.gz nixpkgs-6bcf790d055944fa56129cc4f5e1ac5374e6aea6.tar.bz2 nixpkgs-6bcf790d055944fa56129cc4f5e1ac5374e6aea6.tar.lz nixpkgs-6bcf790d055944fa56129cc4f5e1ac5374e6aea6.tar.xz nixpkgs-6bcf790d055944fa56129cc4f5e1ac5374e6aea6.tar.zst nixpkgs-6bcf790d055944fa56129cc4f5e1ac5374e6aea6.zip |
Merge branch 'master' into x-updates
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/haskell/Chart-gtk/default.nix | 18 | ||||
-rw-r--r-- | pkgs/development/libraries/haskell/Chart/default.nix | 6 | ||||
-rw-r--r-- | pkgs/development/libraries/nlopt/default.nix | 15 |
3 files changed, 32 insertions, 7 deletions
diff --git a/pkgs/development/libraries/haskell/Chart-gtk/default.nix b/pkgs/development/libraries/haskell/Chart-gtk/default.nix new file mode 100644 index 00000000000..dd6c54cf6b8 --- /dev/null +++ b/pkgs/development/libraries/haskell/Chart-gtk/default.nix @@ -0,0 +1,18 @@ +{ cabal, cairo, Chart, colour, dataAccessor, dataAccessorTemplate +, gtk, mtl, time +}: + +cabal.mkDerivation (self: { + pname = "Chart-gtk"; + version = "0.17"; + sha256 = "1i411kdpz75azyhfaryazr0bpij5xcl0y82m9a7k23w8mhybqwc7"; + buildDepends = [ + cairo Chart colour dataAccessor dataAccessorTemplate gtk mtl time + ]; + meta = { + homepage = "https://github.com/timbod7/haskell-chart/wiki"; + description = "Utility functions for using the chart library with GTK"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/development/libraries/haskell/Chart/default.nix b/pkgs/development/libraries/haskell/Chart/default.nix index a59e4ca7f42..dafa834e4d4 100644 --- a/pkgs/development/libraries/haskell/Chart/default.nix +++ b/pkgs/development/libraries/haskell/Chart/default.nix @@ -4,13 +4,13 @@ cabal.mkDerivation (self: { pname = "Chart"; - version = "0.16"; - sha256 = "1mb8hgxj0i5s7l061pfn49m5f6qdwvmgy6ni7jmg85vpy6b7jra3"; + version = "0.17"; + sha256 = "1ip1a61ryypwfzj6dc6n6pl92rflf7lqf1760ppjyg05q5pn6qxg"; buildDepends = [ cairo colour dataAccessor dataAccessorTemplate mtl time ]; meta = { - homepage = "http://www.dockerz.net/software/chart.html"; + homepage = "https://github.com/timbod7/haskell-chart/wiki"; description = "A library for generating 2D Charts and Plots"; license = self.stdenv.lib.licenses.bsd3; platforms = self.ghc.meta.platforms; diff --git a/pkgs/development/libraries/nlopt/default.nix b/pkgs/development/libraries/nlopt/default.nix index 0936332cd48..cc216a59d75 100644 --- a/pkgs/development/libraries/nlopt/default.nix +++ b/pkgs/development/libraries/nlopt/default.nix @@ -1,12 +1,19 @@ -{ fetchurl, stdenv }: +{ fetchurl, stdenv +, withOctave ? true, octave ? null}: stdenv.mkDerivation rec { - name = "nlopt-2.2.1"; + name = "nlopt-2.3"; src = fetchurl { url = "http://ab-initio.mit.edu/nlopt/${name}.tar.gz"; - sha256 = "0p7ri7dcp6vga7jwng7wj9bf2ixk6p5ldxp76r93xkrdixqfngaq"; + sha256 = "1iw2cjgypyqz779f47fz0nmifbrvk4zs4rxi1ibk36f4ly3wg6p6"; }; - configureFlags = "--with-cxx --with-pic --without-guile --without-python --without-octave --without-matlab"; + buildInputs = stdenv.lib.optional withOctave octave; + + configureFlags = "--with-cxx --enable-shared --with-pic --without-guile --without-python + --without-matlab " + + stdenv.lib.optionalString withOctave ("--with-octave " + + "M_INSTALL_DIR=$(out)/${octave.sitePath}/m " + + "OCT_INSTALL_DIR=$(out)/${octave.sitePath}/oct "); } |