Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/maintainers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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>";
Expand Down
28 changes: 28 additions & 0 deletions pkgs/development/pure-modules/pure-gsl/default.nix
Original file line number Diff line number Diff line change
@@ -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 changes: 2 additions & 0 deletions pkgs/development/pure-modules/pure-gsl/setup-hook.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
addToSearchPath PURE_INCLUDE $1/lib/pure
addToSearchPath PURE_LIBRARY $1/lib/pure
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3922,6 +3922,8 @@ let
llvm = llvm_34 ;
};

pure-gsl = callPackage ../development/pure-modules/pure-gsl { };

python = python2;
python2 = python27;
python3 = python34;
Expand Down