parent
110c2d68d0
commit
f522344285
@ -1,52 +1,33 @@
|
|||||||
x@{builderDefsPackage
|
{ lib, stdenv, fetchurl, makeWrapper,
|
||||||
, llvm, gmp, mpfr, readline, bison, flex, makeWrapper
|
llvm, gmp, mpfr, readline, bison, flex }:
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
stdenv.mkDerivation rec {
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
baseName="pure";
|
||||||
sourceInfo = rec {
|
project="pure-lang";
|
||||||
baseName="pure";
|
version="0.62";
|
||||||
project="pure-lang";
|
name="${baseName}-${version}";
|
||||||
version="0.58";
|
extension="tar.gz";
|
||||||
name="${baseName}-${version}";
|
|
||||||
extension="tar.gz";
|
src = fetchurl {
|
||||||
url="https://bitbucket.org/purelang/${project}/downloads/${name}.${extension}";
|
url="https://bitbucket.org/purelang/${project}/downloads/${name}.${extension}";
|
||||||
hash="180ygv8nmfy8v4696km8jdahn5cnr454sc8i1av7s6z4ss7mrxmi";
|
sha256="77df64e8154ef6f8fac66f8bcc471dc8f994862d1ee77b7c98003607757a013b";
|
||||||
};
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchurl {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
sha256 = sourceInfo.hash;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
buildInputs = [ bison flex makeWrapper ];
|
||||||
inherit buildInputs;
|
propagatedBuildInputs = [ llvm gmp mpfr readline ];
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
postInstall = ''
|
||||||
phaseNames = ["doConfigure" "doMakeInstall" "doWrap"];
|
wrapProgram $out/bin/pure --prefix LD_LIBRARY_PATH : ${llvm}/lib
|
||||||
|
'';
|
||||||
doWrap = a.makeManyWrappers ''$out/bin/pure'' ''--prefix LD_LIBRARY_PATH : "${llvm}/lib"'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A purely functional programming language based on term rewriting";
|
description = "A modern-style functional programming language based on term rewriting";
|
||||||
maintainers = with a.lib.maintainers;
|
maintainers = with lib.maintainers;
|
||||||
[
|
[
|
||||||
raskin
|
raskin
|
||||||
];
|
];
|
||||||
platforms = with a.lib.platforms;
|
platforms = with lib.platforms;
|
||||||
linux;
|
linux;
|
||||||
license = a.lib.licenses.gpl3Plus;
|
license = lib.licenses.gpl3Plus;
|
||||||
};
|
};
|
||||||
passthru = {
|
}
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "https://bitbucket.org/purelang/pure-lang/downloads";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}) x
|
|
||||||
|
|
@ -3924,7 +3924,7 @@ let
|
|||||||
polyml = callPackage ../development/compilers/polyml { };
|
polyml = callPackage ../development/compilers/polyml { };
|
||||||
|
|
||||||
pure = callPackage ../development/interpreters/pure {
|
pure = callPackage ../development/interpreters/pure {
|
||||||
llvm = llvm_33 ;
|
llvm = llvm_34 ;
|
||||||
};
|
};
|
||||||
|
|
||||||
python = python2;
|
python = python2;
|
||||||
|
Loading…
Reference in New Issue
Block a user