Files
nixpkgs/pkgs/by-name/ca/cairo-lang/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

51 lines
1.0 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
rustfmt,
perl,
}:
rustPlatform.buildRustPackage rec {
pname = "cairo";
version = "2.11.2";
src = fetchFromGitHub {
owner = "starkware-libs";
repo = "cairo";
rev = "v${version}";
hash = "sha256-VOyqKeiPJ3/VOqcdQXC/rZnTriC2ScmAQ4IlouHjvpI=";
};
cargoHash = "sha256-e2Nire1TLcliq5KxoINJIZJdgohHRTXqIZPj1GNIe2A=";
# openssl crate requires perl during build process
nativeBuildInputs = [
perl
];
nativeCheckInputs = [
rustfmt
];
checkFlags = [
# Requires a mythical rustfmt 2.0 or a nightly compiler
"--skip=golden_test::sourcegen_ast"
# Test broken
"--skip=test_lowering_consistency"
];
postInstall = ''
# The core library is needed for compilation.
cp -r corelib $out/
'';
meta = with lib; {
description = "Turing-complete language for creating provable programs for general computation";
homepage = "https://github.com/starkware-libs/cairo";
license = licenses.asl20;
maintainers = with maintainers; [ raitobezarius ];
};
}