3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/trunk/default.nix

29 lines
806 B
Nix
Raw Normal View History

2021-05-18 18:27:34 +01:00
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config
, openssl, libiconv, CoreServices, Security }:
2021-03-18 15:03:26 +00:00
rustPlatform.buildRustPackage rec {
pname = "trunk";
version = "0.10.0";
src = fetchFromGitHub {
owner = "thedodd";
repo = "trunk";
rev = "v${version}";
sha256 = "W6d05MKquG1QFkvofqWk94+6j5q8yuAjNgZFG3Z3kNo=";
};
nativeBuildInputs = [ pkg-config ];
2021-05-18 18:27:34 +01:00
buildInputs = if stdenv.isDarwin
then [ libiconv CoreServices Security ]
else [ openssl ];
2021-03-18 15:03:26 +00:00
cargoSha256 = "sha256-0ehz0ETNA2gOvTJUu8uq5H+bv4VXOJMq6AA8kn65m/Q=";
2021-03-18 15:03:26 +00:00
meta = with lib; {
homepage = "https://github.com/thedodd/trunk";
description = "Build, bundle & ship your Rust WASM application to the web";
maintainers = with maintainers; [ freezeboy ];
license = with licenses; [ asl20 ];
};
}