2016-05-26 22:36:15 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "picat-1.9-4";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://picat-lang.org/download/picat19_src.tar.gz;
|
|
|
|
sha256 = "0wvl95gf4pjs93632g4wi0mw1glzzhjp9g4xg93ll2zxggbxibli";
|
|
|
|
};
|
|
|
|
|
2018-08-20 21:11:29 +02:00
|
|
|
ARCH = if stdenv.hostPlatform.system == "i686-linux" then "linux32"
|
|
|
|
else if stdenv.hostPlatform.system == "x86_64-linux" then "linux64"
|
2016-05-26 22:36:15 +02:00
|
|
|
else throw "Unsupported system";
|
|
|
|
|
2016-05-31 14:57:28 +02:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2016-05-26 22:36:15 +02:00
|
|
|
buildPhase = ''
|
|
|
|
cd emu
|
|
|
|
make -f Makefile.picat.$ARCH
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp picat_$ARCH $out/bin/picat
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Logic-based programming langage";
|
|
|
|
longDescription = ''
|
|
|
|
Picat is a simple, and yet powerful, logic-based multi-paradigm
|
|
|
|
programming language aimed for general-purpose applications.
|
|
|
|
'';
|
|
|
|
homepage = http://picat-lang.org/;
|
|
|
|
license = stdenv.lib.licenses.mpl20;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2017-10-22 22:56:26 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.earldouglas ];
|
2016-05-26 22:36:15 +02:00
|
|
|
};
|
|
|
|
}
|