2020-01-18 15:55:23 +01:00
|
|
|
{ stdenv, fetchurl, zlib }:
|
2016-05-26 22:36:15 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2020-01-18 15:55:23 +01:00
|
|
|
pname = "picat";
|
2020-10-20 16:52:41 +02:00
|
|
|
version = "3.0p2";
|
2016-05-26 22:36:15 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-10-20 16:52:41 +02:00
|
|
|
url = "http://picat-lang.org/download/picat30_2_src.tar.gz";
|
|
|
|
sha256 = "0sn4fqj2ryalcndx1df5kx5rzb4pfcrza5ljlg9dkfbqv02xgxkd";
|
2016-05-26 22:36:15 +02:00
|
|
|
};
|
|
|
|
|
2020-01-18 15:55:23 +01:00
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
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" ];
|
2020-09-30 04:20:05 +02:00
|
|
|
enableParallelBuilding = true;
|
2016-05-31 14:57:28 +02:00
|
|
|
|
2016-05-26 22:36:15 +02:00
|
|
|
buildPhase = ''
|
|
|
|
cd emu
|
2020-01-18 15:55:23 +01:00
|
|
|
make -f Makefile.$ARCH
|
2016-05-26 22:36:15 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2020-01-18 15:55:23 +01:00
|
|
|
cp picat $out/bin/picat
|
2016-05-26 22:36:15 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://picat-lang.org/";
|
2016-05-26 22:36:15 +02:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|