nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config
2, openssl, libiconv, CoreServices, Security }:
3
4rustPlatform.buildRustPackage rec {
5 pname = "trunk";
6 version = "0.15.0";
7
8 src = fetchFromGitHub {
9 owner = "thedodd";
10 repo = "trunk";
11 rev = "v${version}";
12 sha256 = "sha256-VHUs/trR1M5WacEA0gwKLkGtsws9GFmn1vK0kRxpNII=";
13 };
14
15 nativeBuildInputs = [ pkg-config ];
16 buildInputs = if stdenv.isDarwin
17 then [ libiconv CoreServices Security ]
18 else [ openssl ];
19
20 # requires network
21 checkFlags = [ "--skip=tools::tests::download_and_install_binaries" ];
22
23 cargoSha256 = "sha256-czXe9W+oR1UV7zGZiiHcbydzH6sowa/8upm+5lkPG1U=";
24
25 meta = with lib; {
26 homepage = "https://github.com/thedodd/trunk";
27 description = "Build, bundle & ship your Rust WASM application to the web";
28 maintainers = with maintainers; [ freezeboy ];
29 license = with licenses; [ asl20 ];
30 };
31}