Merge pull request #4514 from asppsa/pure-gsl5

Add pure-gsl package
This commit is contained in:
Pascal Wittmann 2014-10-14 12:42:35 +02:00
commit b6dde36bfa
4 changed files with 33 additions and 0 deletions

View file

@ -18,6 +18,7 @@
antono = "Antono Vasiljev <self@antono.info>";
aristid = "Aristid Breitkreuz <aristidb@gmail.com>";
arobyn = "Alexei Robyn <shados@shados.net>";
asppsa = "Alastair Pharo <asppsa@gmail.com>";
astsmtl = "Alexander Tsamutali <astsmtl@yandex.ru>";
aszlig = "aszlig <aszlig@redmoonstudios.org>";
auntie = "Jonathan Glines <auntieNeo@gmail.com>";

View file

@ -0,0 +1,28 @@
{ stdenv, fetchurl, pure, pkgconfig, gsl }:
stdenv.mkDerivation {
name = "pure-gsl-0.12";
src = fetchurl {
url = https://bitbucket.org/purelang/pure-lang/downloads/pure-gsl-0.12.tar.gz;
sha256 = "06bdd873d5417d90ca35093056a060b77365123ed24c3ac583cd3922d4c78a75";
};
buildInputs = [ pkgconfig ];
propagatedBuildInputs = [ pure gsl ];
installPhase = ''
mkdir -p $out/lib/pure/gsl
install gsl.pure gsl$(pkg-config pure --variable DLL) $out/lib/pure
install gsl/*.pure $out/lib/pure/gsl
'';
setupHook = ./setup-hook.sh;
meta = {
description = "GNU Scientific Library interface for Pure";
homepage = http://puredocs.bitbucket.org/pure-gsl.html;
license = stdenv.lib.licenses.gpl3Plus;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ asppsa ];
};
}

View file

@ -0,0 +1,2 @@
addToSearchPath PURE_INCLUDE $1/lib/pure
addToSearchPath PURE_LIBRARY $1/lib/pure

View file

@ -3922,6 +3922,8 @@ let
llvm = llvm_34 ;
};
pure-gsl = callPackage ../development/pure-modules/pure-gsl { };
python = python2;
python2 = python27;
python3 = python34;