2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "picat";
|
2020-10-20 17:27:49 +00:00
|
|
|
version = "3.0p2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-10-20 17:27:49 +00:00
|
|
|
url = "http://picat-lang.org/download/picat30_2_src.tar.gz";
|
|
|
|
sha256 = "0sn4fqj2ryalcndx1df5kx5rzb4pfcrza5ljlg9dkfbqv02xgxkd";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
2020-10-07 09:15:18 +00:00
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
cd emu
|
|
|
|
make -f Makefile.$ARCH
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp picat $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;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.earldouglas ];
|
|
|
|
};
|
|
|
|
}
|