Add pure-gsl package
This commit is contained in:
parent
3ce9467f49
commit
d147759af7
@ -18,6 +18,7 @@
|
|||||||
antono = "Antono Vasiljev <self@antono.info>";
|
antono = "Antono Vasiljev <self@antono.info>";
|
||||||
aristid = "Aristid Breitkreuz <aristidb@gmail.com>";
|
aristid = "Aristid Breitkreuz <aristidb@gmail.com>";
|
||||||
arobyn = "Alexei Robyn <shados@shados.net>";
|
arobyn = "Alexei Robyn <shados@shados.net>";
|
||||||
|
asppsa = "Alastair Pharo <asppsa@gmail.com>";
|
||||||
astsmtl = "Alexander Tsamutali <astsmtl@yandex.ru>";
|
astsmtl = "Alexander Tsamutali <astsmtl@yandex.ru>";
|
||||||
aszlig = "aszlig <aszlig@redmoonstudios.org>";
|
aszlig = "aszlig <aszlig@redmoonstudios.org>";
|
||||||
auntie = "Jonathan Glines <auntieNeo@gmail.com>";
|
auntie = "Jonathan Glines <auntieNeo@gmail.com>";
|
||||||
|
28
pkgs/development/pure-modules/pure-gsl/default.nix
Normal file
28
pkgs/development/pure-modules/pure-gsl/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
2
pkgs/development/pure-modules/pure-gsl/setup-hook.sh
Normal file
2
pkgs/development/pure-modules/pure-gsl/setup-hook.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
addToSearchPath PURE_INCLUDE $1/lib/pure
|
||||||
|
addToSearchPath PURE_LIBRARY $1/lib/pure
|
@ -3922,6 +3922,8 @@ let
|
|||||||
llvm = llvm_34 ;
|
llvm = llvm_34 ;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pure-gsl = callPackage ../development/pure-modules/pure-gsl { };
|
||||||
|
|
||||||
python = python2;
|
python = python2;
|
||||||
python2 = python27;
|
python2 = python27;
|
||||||
python3 = python34;
|
python3 = python34;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user