13 rustPlatform.buildRustPackage rec {
17 src = fetchFromGitHub {
21 hash = "sha256-cx14IVqsu1SQezs8T1HFZ75+MPWkvf5RcvGCodW5G4A=";
24 nativeBuildInputs = [ pkg-config ];
25 buildInputs = if stdenv.isDarwin
26 then [ CoreServices SystemConfiguration ]
29 checkFlags = [ "--skip=tools::tests::download_and_install_binaries" ];
31 cargoHash = "sha256-zMkRCNFrfkUvq6oz/7GtaWNw9YS5NygBUYzoOAoQl40=";
33 # the dependency css-minify contains both README.md and Readme.md,
34 # which causes a hash mismatch on systems with a case-insensitive filesystem
35 # this removes the readme files and updates cargo's checksum file accordingly
43 pushd $name/css-minify
45 rm -f README.md Readme.md
46 jq 'del(.files."README.md") | del(.files."Readme.md")' \
47 .cargo-checksum.json -c \
48 | sponge .cargo-checksum.json
55 homepage = "https://github.com/trunk-rs/trunk";
56 description = "Build, bundle & ship your Rust WASM application to the web";
57 mainProgram = "trunk";
58 maintainers = with maintainers; [ freezeboy ctron ];
59 license = with licenses; [ asl20 ];