nixpkgs/pkgs/development/interpreters/pure/default.nix

33 lines
868 B
Nix
Raw Normal View History

2014-10-12 10:37:57 +02:00
{ lib, stdenv, fetchurl, makeWrapper,
llvm, gmp, mpfr, readline, bison, flex }:
2014-10-12 10:37:57 +02:00
stdenv.mkDerivation rec {
baseName="pure";
project="pure-lang";
version="0.62";
name="${baseName}-${version}";
extension="tar.gz";
src = fetchurl {
2013-10-09 21:23:37 +02:00
url="https://bitbucket.org/purelang/${project}/downloads/${name}.${extension}";
2014-10-12 10:37:57 +02:00
sha256="77df64e8154ef6f8fac66f8bcc471dc8f994862d1ee77b7c98003607757a013b";
};
2014-10-12 10:37:57 +02:00
buildInputs = [ bison flex makeWrapper ];
propagatedBuildInputs = [ llvm gmp mpfr readline ];
2013-02-17 10:59:43 +01:00
2014-10-12 10:37:57 +02:00
postInstall = ''
wrapProgram $out/bin/pure --prefix LD_LIBRARY_PATH : ${llvm}/lib
'';
2013-02-17 10:59:43 +01:00
meta = {
2014-10-12 10:37:57 +02:00
description = "A modern-style functional programming language based on term rewriting";
maintainers = with lib.maintainers;
[
raskin
];
2014-10-12 10:37:57 +02:00
platforms = with lib.platforms;
linux;
2014-10-12 10:37:57 +02:00
license = lib.licenses.gpl3Plus;
};
2014-10-12 10:37:57 +02:00
}