picat: 1.9-4 -> 2.8-2

This commit is contained in:
Maximilian Bosch 2020-01-18 15:55:23 +01:00
parent 1a871171ce
commit 6638819910
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E
2 changed files with 10 additions and 9 deletions

View File

@ -1,13 +1,16 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, zlib }:
stdenv.mkDerivation {
name = "picat-1.9-4";
pname = "picat";
version = "2.8-2";
src = fetchurl {
url = http://picat-lang.org/download/picat19_src.tar.gz;
sha256 = "0wvl95gf4pjs93632g4wi0mw1glzzhjp9g4xg93ll2zxggbxibli";
url = http://picat-lang.org/download/picat28_src.tar.gz;
sha256 = "10hf2fxxbpq28gi39icr8c9wafdiy9ddfkk6l4rx7kkqyrdi7n85";
};
buildInputs = [ zlib ];
ARCH = if stdenv.hostPlatform.system == "i686-linux" then "linux32"
else if stdenv.hostPlatform.system == "x86_64-linux" then "linux64"
else throw "Unsupported system";
@ -16,12 +19,12 @@ stdenv.mkDerivation {
buildPhase = ''
cd emu
make -f Makefile.picat.$ARCH
make -f Makefile.$ARCH
'';
installPhase = ''
mkdir -p $out/bin
cp picat_$ARCH $out/bin/picat
cp picat $out/bin/picat
'';
meta = {

View File

@ -8727,9 +8727,7 @@ in
pforth = callPackage ../development/compilers/pforth {};
picat = callPackage ../development/compilers/picat {
stdenv = gcc49Stdenv;
};
picat = callPackage ../development/compilers/picat { };
ponyc = callPackage ../development/compilers/ponyc {
llvm = llvm_7;