Add pure-gsl package

This commit is contained in:
Alastair Pharo 2014-10-14 21:21:36 +11:00
parent 3ce9467f49
commit d147759af7
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;