Merge pull request #236447 from RaitoBezarius/cairo-lang-compiler

cairo-lang: init at 1.1.0
This commit is contained in:
figsoda 2023-06-07 16:11:38 -04:00 committed by GitHub
commit bb00010470
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{ lib
, rustPlatform
, fetchFromGitHub
, rustfmt
}:
rustPlatform.buildRustPackage rec {
pname = "cairo";
version = "1.1.0";
src = fetchFromGitHub {
owner = "starkware-libs";
repo = "cairo";
rev = "v${version}";
hash = "sha256-8dzDe4Kw9OASD0i3bMooqEclStxS/Ta/tOVCcFhvwSI=";
};
cargoHash = "sha256-IY3RE+EeNRhUSZX+bqojhPl6y8qm+i9C0zQmNApmat8=";
nativeCheckInputs = [
rustfmt
];
checkFlags = [
# Requires a mythical rustfmt 2.0 or a nightly compiler
"--skip=golden_test::sourcegen_ast"
];
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 ];
};
}

View File

@ -21023,6 +21023,8 @@ with pkgs;
cairo = callPackage ../development/libraries/cairo { };
cairo-lang = callPackage ../development/compilers/cairo { };
cairomm = callPackage ../development/libraries/cairomm { };
cairomm_1_16 = callPackage ../development/libraries/cairomm/1.16.nix {