nixpkgs/pkgs/development/compilers/picat/default.nix
Austin Seipp 79f3b75f3c picat: 3.0p4 -> 3.3p3
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2023-02-09 16:21:11 -06:00

37 lines
974 B
Nix

{ lib, stdenv, fetchurl, zlib }:
let
ARCH = {
i686-linux = "linux32";
x86_64-linux = "linux64";
aarch64-linux = "linux64";
}."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
in
stdenv.mkDerivation {
pname = "picat";
version = "3.3p3";
src = fetchurl {
url = "http://picat-lang.org/download/picat333_src.tar.gz";
hash = "sha256-LMmAHCGKgon/wNbrXTUH9hiHyGVwwSDpB1236xawzXs=";
};
buildInputs = [ zlib ];
inherit ARCH;
hardeningDisable = [ "format" ];
enableParallelBuilding = true;
buildPhase = "cd emu && make -j $NIX_BUILD_CORES -f Makefile.$ARCH";
installPhase = "mkdir -p $out/bin && cp picat $out/bin/picat";
meta = with lib; {
description = "Logic-based programming langage";
homepage = "http://picat-lang.org/";
license = licenses.mpl20;
platforms = platforms.linux;
maintainers = with maintainers; [ earldouglas thoughtpolice ];
};
}