1 { lib, stdenv, fetchurl, zlib }:
5 x86_64-linux = "linux64";
6 aarch64-linux = "linux64";
7 x86_64-cygwin = "cygwin64";
8 x86_64-darwin = "mac64";
9 aarch64-darwin = "mac64";
10 }."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
17 url = "http://picat-lang.org/download/picat368_src.tar.gz";
18 hash = "sha256-eJxF5atvJq3fhFltcQCGTP/sgUmfsfCohUgm3x2U1n0=";
21 buildInputs = [ zlib ];
25 hardeningDisable = [ "format" ];
26 enableParallelBuilding = true;
30 make -j $NIX_BUILD_CORES -f Makefile.$ARCH
33 mkdir -p $out/bin $out/share
35 cp -r ../doc $out/share/doc
36 cp -r ../exs $out/share/examples
40 description = "Logic-based programming language";
41 mainProgram = "picat";
42 homepage = "http://picat-lang.org/";
43 license = licenses.mpl20;
51 maintainers = with maintainers; [ earldouglas thoughtpolice ];