cargo-tauri_1: init at 1.8.1
A transitional package until more projects move to Tauri v2
This commit is contained in:
parent
8bcce2b374
commit
a6e5c11cc4
62
pkgs/by-name/ca/cargo-tauri_1/package.nix
Normal file
62
pkgs/by-name/ca/cargo-tauri_1/package.nix
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
rustPlatform,
|
||||||
|
fetchFromGitHub,
|
||||||
|
cargo-tauri,
|
||||||
|
cargo-tauri_1,
|
||||||
|
gtk3,
|
||||||
|
libsoup,
|
||||||
|
openssl,
|
||||||
|
webkitgtk_4_0,
|
||||||
|
}:
|
||||||
|
|
||||||
|
cargo-tauri.overrideAttrs (
|
||||||
|
newAttrs: oldAttrs: {
|
||||||
|
version = "1.8.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "tauri-apps";
|
||||||
|
repo = "tauri";
|
||||||
|
rev = "tauri-v${newAttrs.version}";
|
||||||
|
hash = "sha256-z8dfiLghN6m95PLCMDgpBMNo+YEvvsGN9F101fAcVF4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
# 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 = "${newAttrs.src.name}/tooling/cli";
|
||||||
|
|
||||||
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||||
|
inherit (newAttrs)
|
||||||
|
pname
|
||||||
|
version
|
||||||
|
src
|
||||||
|
sourceRoot
|
||||||
|
;
|
||||||
|
hash = "sha256-OIXC4kwGIemIL8KaqK5SUDZZrOX3PX0w3h9bNiM/pCw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs =
|
||||||
|
[ openssl ]
|
||||||
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||||
|
gtk3
|
||||||
|
libsoup
|
||||||
|
webkitgtk_4_0
|
||||||
|
];
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
hook = cargo-tauri.hook.override { cargo-tauri = cargo-tauri_1; };
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
inherit (oldAttrs.meta)
|
||||||
|
description
|
||||||
|
homepage
|
||||||
|
changelog
|
||||||
|
license
|
||||||
|
maintainers
|
||||||
|
mainProgram
|
||||||
|
;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user