nixpkgs/pkgs/development/tools/trunk/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
908 B
Nix
Raw Normal View History

2021-05-18 17:27:34 +00:00
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config
, openssl, libiconv, CoreServices, Security }:
2021-03-18 15:03:26 +00:00
rustPlatform.buildRustPackage rec {
pname = "trunk";
2022-07-31 03:56:45 +00:00
version = "0.16.0";
2021-03-18 15:03:26 +00:00
src = fetchFromGitHub {
owner = "thedodd";
repo = "trunk";
rev = "v${version}";
2022-07-31 03:56:45 +00:00
sha256 = "sha256-6o+frbLtuw+DwJiWv4x11qX4GUffhxF19pi/7FLYmHA=";
2021-03-18 15:03:26 +00:00
};
nativeBuildInputs = [ pkg-config ];
2021-05-18 17:27:34 +00:00
buildInputs = if stdenv.isDarwin
then [ libiconv CoreServices Security ]
else [ openssl ];
2021-03-18 15:03:26 +00:00
2021-09-14 15:20:18 +00:00
# requires network
checkFlags = [ "--skip=tools::tests::download_and_install_binaries" ];
2022-07-31 03:56:45 +00:00
cargoSha256 = "sha256-j/i2io1JfcNA7eeAXAAKMBtHORZm4J5dOFFNnzvx2cg=";
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 ];
};
}