nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchurl, pkgconfig, pure }:
2
3stdenv.mkDerivation rec {
4 baseName = "mpfr";
5 version = "0.5";
6 name = "pure-${baseName}-${version}";
7
8 src = fetchurl {
9 url = "https://bitbucket.org/purelang/pure-lang/downloads/${name}.tar.gz";
10 sha256 = "39d2255c2c0c2d60ce727be178b5e5a06f7c92eb365976c49c4a34b1edc576e7";
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 = "This module makes the MPFR multiprecision floats available in Pure";
20 homepage = http://puredocs.bitbucket.org/pure-mpfr.html;
21 license = stdenv.lib.licenses.lgpl3Plus;
22 platforms = stdenv.lib.platforms.linux;
23 maintainers = with stdenv.lib.maintainers; [ asppsa ];
24 };
25}