1{ stdenv, fetchurl, pkgconfig, pure }:
2
3stdenv.mkDerivation rec {
4 baseName = "rational";
5 version = "0.1";
6 name = "pure-${baseName}-${version}";
7
8 src = fetchurl {
9 url = "https://bitbucket.org/purelang/pure-lang/downloads/${name}.tar.gz";
10 sha256 = "62cb4079a0dadd232a859e577e97e50e9718ccfcc5983c4d9c4c32cac7a9bafa";
11 };
12
13 buildInputs = [ pkgconfig ];
14 propagatedBuildInputs = [ pure ];
15 makeFlags = "libdir=$(out)/lib prefix=$(out)/";
16 setupHook = ../generic-setup-hook.sh;
17
18 meta = {
19 description = "A collection of utility functions for rational numbers, and a module for doing interval arithmetic in Pure";
20 homepage = http://puredocs.bitbucket.org/pure-rational.html;
21 license = stdenv.lib.licenses.gpl3Plus;
22 platforms = stdenv.lib.platforms.linux;
23 maintainers = with stdenv.lib.maintainers; [ asppsa ];
24 };
25}