Files
nixpkgs/pkgs/by-name/pi/picat/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

71 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchurl,
zlib,
}:
stdenv.mkDerivation {
pname = "picat";
version = "3.8#7";
src = fetchurl {
url = "https://picat-lang.org/download/picat387_src.tar.gz";
hash = "sha256-H+aFmagdb7jU4LZCYrNPa4ZWVB1ziiJHrUe4b1ImWks=";
};
buildInputs = [ zlib ];
env.ARCH =
{
x86_64-linux = "linux64";
aarch64-linux = "linux64";
x86_64-cygwin = "cygwin64";
x86_64-darwin = "mac64";
aarch64-darwin = "mac64";
}
."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
hardeningDisable = [ "format" ];
enableParallelBuilding = true;
buildPhase = ''
runHook preBuild
cd emu
make -j $NIX_BUILD_CORES -f Makefile.$ARCH
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/share
cp picat $out/bin/
cp -r ../doc $out/share/doc
cp -r ../exs $out/share/examples
runHook postInstall
'';
meta = {
description = "Logic-based programming language";
mainProgram = "picat";
homepage = "http://picat-lang.org/";
license = lib.licenses.mpl20;
platforms = [
"x86_64-linux"
"aarch64-linux"
"x86_64-cygwin"
"x86_64-darwin"
"aarch64-darwin"
];
maintainers = with lib.maintainers; [
earldouglas
thoughtpolice
];
};
}