3
0
Fork 0
forked from mirrors/nixpkgs

Merge branch 'ats2'

This commit is contained in:
Thomas Tuegel 2016-05-12 10:23:12 -05:00
commit 1ac8374e95
3 changed files with 45 additions and 6 deletions

View file

@ -2,22 +2,22 @@
stdenv.mkDerivation rec {
name = "ats2-${version}";
version = "0.2.4";
version = "0.2.6";
src = fetchurl {
url = "mirror://sourceforge/ats2-lang/ATS2-Postiats-${version}.tgz";
sha256 = "0dx3r2vxmarj3aqm0xlcmls1h08pll9y9k4820df41awyrwmfvcy";
sha256 = "0hfaw8mrxrmb9kdbz5sp4nfjsmncmq6zqwm1n2x2p6arn0za6y9i";
};
buildInputs = [ gmp ];
setupHook = ./setup-hook.sh;
meta = {
meta = with stdenv.lib; {
description = "Functional programming language with dependent types";
homepage = "http://www.ats-lang.org";
license = stdenv.lib.licenses.gpl3Plus;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ thoughtpolice ttuegel ];
};
}

View file

@ -0,0 +1,37 @@
{ stdenv, fetchurl, python3, python3Packages }:
stdenv.mkDerivation {
name = "postiats-utilities-2.0.1";
src = fetchurl {
url = "https://github.com/Hibou57/PostiATS-Utilities/archive/v2.0.1.tar.gz";
sha256 = "12jlzqigmaa9m37x0nq5v3gq8v61m73i5kzdnsm06chf0przpaix";
};
meta = with stdenv.lib; {
homepage = "https://github.com/Hibou57/PostiATS-Utilities";
license = licenses.bsd2;
platforms = platforms.linux;
maintainers = [ maintainers.ttuegel ];
};
buildInputs = [ python3 python3Packages.wrapPython ];
phases = "unpackPhase patchPhase installPhase";
postPatch = ''
for f in pats-* postiats/*.py; do
sed -i "$f" -e "1 s,python3,python,"
done
'';
installPhase = ''
libdir="$out/lib/${python3.libPrefix}/site-packages"
mkdir -p "$libdir"
cp -r postiats "$libdir"
mkdir -p "$out/bin"
install pats-* "$out/bin"
wrapPythonPrograms
'';
}

View file

@ -6293,6 +6293,8 @@ in
});
pkgconfigUpstream = lowPrio (pkgconfig.override { vanilla = true; });
postiats-utilities = callPackage ../development/tools/postiats-utilities {};
prelink = callPackage ../development/tools/misc/prelink { };
premake3 = callPackage ../development/tools/misc/premake/3.nix { };