summary refs log tree commit diff
path: root/pkgs/development/pure-modules/octave/default.nix
blob: 8fbb1dac320dd47c96d14baa00717bf6ec9224dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchurl, pkgconfig, pure, octave }:

stdenv.mkDerivation rec {
  baseName = "octave";
  version = "0.9";
  name = "pure-${baseName}-${version}";

  src = fetchurl {
    url = "https://bitbucket.org/purelang/pure-lang/downloads/${name}.tar.gz";
    sha256 = "0l1mvmi3rpabzjcrk6p04rdn922mvdm9x67zby3dha5iiccc47q0";
  };

  nativeBuildInputs = [ pkgconfig ];
  propagatedBuildInputs = [ pure octave ];
  makeFlags = "libdir=$(out)/lib prefix=$(out)/";
  setupHook = ../generic-setup-hook.sh;

  meta = {
    description = "An Octave module for the Pure programming language";
    homepage = http://puredocs.bitbucket.org/pure-octave.html;
    license = stdenv.lib.licenses.gpl3Plus;
    # This is set to none for now because it does not work with the
    # current stable version of Octave.
    platforms = stdenv.lib.platforms.none;
    maintainers = with stdenv.lib.maintainers; [ asppsa ];
  };
}