diff options
author | Valentin B <703631+beeb@users.noreply.github.com> | 2024-01-04 09:02:25 +0100 |
---|---|---|
committer | beeb <703631+beeb@users.noreply.github.com> | 2024-01-06 15:44:57 +0100 |
commit | 31cb1b07c9fa28a678c27b72a70c8757d9f939b0 (patch) | |
tree | 2e03c36f8166909d03ba012434439c45af77cd95 /pkgs/by-name/bu | |
parent | b736a8a80116dc7c03ba7b3e481ade72a488e894 (diff) | |
download | nixlib-31cb1b07c9fa28a678c27b72a70c8757d9f939b0.tar nixlib-31cb1b07c9fa28a678c27b72a70c8757d9f939b0.tar.gz nixlib-31cb1b07c9fa28a678c27b72a70c8757d9f939b0.tar.bz2 nixlib-31cb1b07c9fa28a678c27b72a70c8757d9f939b0.tar.lz nixlib-31cb1b07c9fa28a678c27b72a70c8757d9f939b0.tar.xz nixlib-31cb1b07c9fa28a678c27b72a70c8757d9f939b0.tar.zst nixlib-31cb1b07c9fa28a678c27b72a70c8757d9f939b0.zip |
bulloak: 0.5.4 -> 0.6.1
Diffstat (limited to 'pkgs/by-name/bu')
-rw-r--r-- | pkgs/by-name/bu/bulloak/package.nix | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/pkgs/by-name/bu/bulloak/package.nix b/pkgs/by-name/bu/bulloak/package.nix index f9bd96f56538..726421607a9f 100644 --- a/pkgs/by-name/bu/bulloak/package.nix +++ b/pkgs/by-name/bu/bulloak/package.nix @@ -1,24 +1,55 @@ { lib , fetchFromGitHub , rustPlatform +, fetchurl +, stdenv +, darwin }: +let + # svm-rs-builds requires a list of solc versions to build, and would make network calls if not provided. + # The ethereum project does not provide static binaries for aarch64, so we use separate sources, the same as in + # svm-rs's source code. + solc-versions = { + x86_64-linux = fetchurl { + url = "https://raw.githubusercontent.com/ethereum/solc-bin/60de887187e5670c715931a82fdff6677b31f0cb/linux-amd64/list.json"; + hash = "sha256-zm1cdqSP4Y9UQcq9OV8sXxnzr3+TWdc7mdg+Do8Y7WY="; + }; + x86_64-darwin = fetchurl { + url = "https://raw.githubusercontent.com/ethereum/solc-bin/60de887187e5670c715931a82fdff6677b31f0cb/macosx-amd64/list.json"; + hash = "sha256-uUdd5gCG7SHQgAW2DQXemTujb8bUJM27J02WjLkQgek="; + }; + aarch64-linux = fetchurl { + url = "https://raw.githubusercontent.com/nikitastupin/solc/923ab4b852fadc00ffe87bb76fff21d0613bd280/linux/aarch64/list.json"; + hash = "sha256-mJaEN63mR3XdK2FmEF+VhLR6JaCCtYkIRq00wYH6Xx8="; + }; + aarch64-darwin = fetchurl { + url = "https://raw.githubusercontent.com/alloy-rs/solc-builds/260964c1fcae2502c0139070bdc5c83eb7036a68/macosx/aarch64/list.json"; + hash = "sha256-xrtb3deMDAuDIjzN1pxm5NyW5NW5OyoOHTFsYyWJCYY="; + }; + }; +in rustPlatform.buildRustPackage rec { pname = "bulloak"; - version = "0.5.4"; + version = "0.6.1"; src = fetchFromGitHub { owner = "alexfertel"; repo = "bulloak"; rev = "v${version}"; - hash = "sha256-lUTMQMBqCezuUsfvuYSCBFsokoY3bPoJDGWL90EjVqY="; + hash = "sha256-0pzn0gXlhdndCpsrVRNxl1ylIE/S9A0l8VjNn5wDVvw="; }; - cargoHash = "sha256-LH96e/dBbv4J7g7wzh3/vL+PzZn779zUMBgio6w3rJw="; + cargoHash = "sha256-IlDbys5uluLm418UkGf+FIM1AfR2IBAZQ4Atqlybajw="; + + buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ]; # tests run in CI on the source repo doCheck = false; + # provide the list of solc versions to the `svm-rs-builds` dependency + SVM_RELEASES_LIST_JSON = solc-versions.${stdenv.hostPlatform.system}; + meta = with lib; { description = "A Solidity test generator based on the Branching Tree Technique"; homepage = "https://github.com/alexfertel/bulloak"; |