@@ -22,11 +22,14 @@ rustPlatform.buildRustPackage rec {
2222 hash = "sha256-YMeGTPx3kqQ9CKFiH7rUEYzK0BCPksC1XIGfOj5MVd0=" ;
2323 } ;
2424
25- cargoLock = {
26- lockFile = "${ src } /Cargo.lock" ;
27- } ;
25+ cargoHash = "sha256-TZTnaPsnfRjtfFMw5vdz4wV0ddjJ63TKrDHUkKvOfDw=" ;
2826
29- nativeBuildInputs = [ pkg-config installShellFiles ] ++ lib . optionals stdenv . hostPlatform . isDarwin [ darwin . DarwinTools ] ;
27+ nativeBuildInputs =
28+ [
29+ pkg-config
30+ installShellFiles
31+ ]
32+ ++ lib . optionals stdenv . hostPlatform . isDarwin [ darwin . DarwinTools ] ;
3033
3134 buildInputs = [ solc ] ++ lib . optionals stdenv . hostPlatform . isDarwin [ libusb1 ] ;
3235
@@ -40,7 +43,11 @@ rustPlatform.buildRustPackage rec {
4043 } ;
4144
4245 postInstall = let
43- binsWithCompletions = [ "anvil" "cast" "forge" ] ;
46+ binsWithCompletions = [
47+ "anvil"
48+ "cast"
49+ "forge"
50+ ] ;
4451 in ''
4552 ${ lib . concatMapStringsSep "\n " ( bin : ''
4653 installShellCompletion --cmd ${ bin } \
@@ -65,10 +72,17 @@ rustPlatform.buildRustPackage rec {
6572 meta = with lib ; {
6673 description = "A portable, modular toolkit for Ethereum application development written in Rust." ;
6774 homepage = "https://github.com/foundry-rs/foundry" ;
68- license = with licenses ; [ asl20 mit ] ;
75+ license = with licenses ; [
76+ asl20
77+ mit
78+ ] ;
6979 maintainers = with maintainers ; [ mitchmindtree ] ;
7080 # TODO: Change this to `platforms = platforms.unix;` when this is resolved:
7181 # https://github.com/ethereum/solidity/issues/11351
72- platforms = [ "aarch64-darwin" "x86_64-linux" "x86_64-darwin" ] ;
82+ platforms = [
83+ "aarch64-darwin"
84+ "x86_64-linux"
85+ "x86_64-darwin"
86+ ] ;
7387 } ;
7488}
0 commit comments