diff options
author | Nick Cao <nickcao@nichi.co> | 2023-10-12 20:05:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-12 20:05:04 -0400 |
commit | d1a8d937445a970c1342a2bd360a86f235379e2e (patch) | |
tree | de0221028e5d77e33b808a0d9e569aab50fae0aa /pkgs/by-name | |
parent | 7cd50f640e9483c6bb661564a2eeb42e1a1f2396 (diff) | |
parent | 32814b01a40c914c8637e60cbada11ef47659501 (diff) |
Merge pull request #258616 from ctron/add-trunk-ng
add trunk-ng, a fork of trunk
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/tr/trunk-ng/package.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/by-name/tr/trunk-ng/package.nix b/pkgs/by-name/tr/trunk-ng/package.nix new file mode 100644 index 0000000000000..0ba415d1bb968 --- /dev/null +++ b/pkgs/by-name/tr/trunk-ng/package.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config +, openssl, libiconv, CoreServices, Security }: + +rustPlatform.buildRustPackage rec { + pname = "trunk-ng"; + version = "0.17.8"; + + src = fetchFromGitHub { + owner = "ctron"; + repo = "trunk"; + rev = "v${version}"; + hash = "sha256-ycZIqDBZccPapOK0ZI9Cvq94tRxChrsWX1rhyWh0S2c="; + }; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = if stdenv.isDarwin + then [ libiconv CoreServices Security ] + else [ openssl ]; + + # requires network + checkFlags = [ "--skip=tools::tests::download_and_install_binaries" ]; + + cargoHash = "sha256-URHArTog34JcuxXHzTQBjQOFMffarNb51d9sUOfjm6c="; + + meta = with lib; { + homepage = "https://github.com/ctron/trunk"; + description = "Build, bundle & ship your Rust WASM application to the web"; + maintainers = with maintainers; [ ctron ]; + license = with licenses; [ asl20 ]; + }; +} |