571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
50 lines
1.0 KiB
Nix
50 lines
1.0 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, rustfmt
|
|
, perl
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cairo";
|
|
version = "2.8.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "starkware-libs";
|
|
repo = "cairo";
|
|
rev = "v${version}";
|
|
hash = "sha256-xHvBbm1ewNu96TyK//l2emiq+jaPhSWvvbVK9Q/O5lo=";
|
|
};
|
|
|
|
cargoHash = "sha256-E6nnT+I5ur4PPvLjwfebR1Tdm206hI05HCVc3IWDqFY=";
|
|
|
|
# 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 ];
|
|
};
|
|
}
|