blob: eba45ed8bbf347e383e4a27f2b36dc50d5bf158a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{ stdenv, fetchurl, zlib }:
stdenv.mkDerivation {
pname = "picat";
version = "3.0";
src = fetchurl {
url = "http://picat-lang.org/download/picat30_src.tar.gz";
sha256 = "0ivqp4ifknc019rb975vx5j3rmr69x2f3ig7ybb38wm5zx5mljgg";
};
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" ];
enableParallelBuilding = true;
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 ];
};
}
|