nixpkgs/pkgs/development/compilers/picat/default.nix

42 lines
1.0 KiB
Nix
Raw Normal View History

2020-01-18 14:55:23 +00:00
{ stdenv, fetchurl, zlib }:
2016-05-26 21:36:15 +01:00
stdenv.mkDerivation {
2020-01-18 14:55:23 +00:00
pname = "picat";
version = "2.8-2";
2016-05-26 21:36:15 +01:00
src = fetchurl {
url = "http://picat-lang.org/download/picat28_src.tar.gz";
2020-01-18 14:55:23 +00:00
sha256 = "10hf2fxxbpq28gi39icr8c9wafdiy9ddfkk6l4rx7kkqyrdi7n85";
2016-05-26 21:36:15 +01:00
};
2020-01-18 14:55:23 +00:00
buildInputs = [ zlib ];
ARCH = if stdenv.hostPlatform.system == "i686-linux" then "linux32"
else if stdenv.hostPlatform.system == "x86_64-linux" then "linux64"
2016-05-26 21:36:15 +01:00
else throw "Unsupported system";
2016-05-31 13:57:28 +01:00
hardeningDisable = [ "format" ];
2016-05-26 21:36:15 +01:00
buildPhase = ''
cd emu
2020-01-18 14:55:23 +00:00
make -f Makefile.$ARCH
2016-05-26 21:36:15 +01:00
'';
installPhase = ''
mkdir -p $out/bin
2020-01-18 14:55:23 +00:00
cp picat $out/bin/picat
2016-05-26 21:36:15 +01: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.
'';
homepage = "http://picat-lang.org/";
2016-05-26 21:36:15 +01:00
license = stdenv.lib.licenses.mpl20;
platforms = stdenv.lib.platforms.linux;
2017-10-22 21:56:26 +01:00
maintainers = [ stdenv.lib.maintainers.earldouglas ];
2016-05-26 21:36:15 +01:00
};
}