depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-tauri/default.nix
Default email 13da32182d Project import generated by Copybara.
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
2022-08-21 15:32:41 +02:00

38 lines
1 KiB
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, glibc
, libsoup
, cairo
, gtk3
, webkitgtk
}:
rustPlatform.buildRustPackage rec {
pname = "tauri";
version = "1.0.5";
src = fetchFromGitHub {
owner = "tauri-apps";
repo = pname;
rev = "v${version}";
sha256 = "sha256-mp9U46H03NTMumUkx5kjsh9LnbPBrvlhh3yCH6FYdbE=";
};
# Manually specify the sourceRoot since this crate depends on other crates in the workspace. Relevant info at
# https://discourse.nixos.org/t/difficulty-using-buildrustpackage-with-a-src-containing-multiple-cargo-workspaces/10202
sourceRoot = "source/tooling/cli";
cargoSha256 = "sha256-iFXuVrxE/QmM+TAZmN8Ivt6Le19NWYIfVn1PNPvmhZo=";
buildInputs = [ glibc libsoup cairo gtk3 webkitgtk ];
nativeBuildInputs = [ pkg-config ];
meta = with lib; {
description = "Build smaller, faster, and more secure desktop applications with a web frontend";
homepage = "https://tauri.app/";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ dit7ya ];
};
}