Created
October 9, 2022 13:41
-
-
Save schickling/1c64ce0d0693445ea20df0322fac6b30 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ rustPlatform | |
, fetchCrate | |
, fetchFromGitHub | |
, lib | |
, stdenv | |
, darwin | |
}: | |
let | |
pname = "tauri-cli"; | |
# https://crates.io/crates/tauri-cli | |
version = "1.1.1"; | |
in | |
rustPlatform.buildRustPackage { | |
inherit pname version; | |
# src = fetchCrate { | |
# inherit pname version; | |
# sha256 = "sha256-h2fgira8pkEn68Er4oNs+CD5tEu8GuYfMeHGa531l+A="; | |
# }; | |
src = fetchFromGitHub | |
{ | |
owner = "tauri-apps"; | |
repo = "tauri"; | |
rev = "4036e15f5af933bdc0d0913508b5103958afc143"; | |
sha256 = "sha256-HhHoajzQ67RtXXvWcFOl3mbpSZh73oA9x8wKuIY6+XI="; | |
}; | |
sourceRoot = "source/tooling/cli"; | |
buildInputs = lib.optionals stdenv.isDarwin [ | |
darwin.apple_sdk.frameworks.Security | |
darwin.apple_sdk.frameworks.CoreServices | |
]; | |
cargoDepsName = pname; | |
cargoHash = "sha256-+3p1E+w/ZvsEE6KYUbQ2CYLMIMxB45YVSMmpqIXgEWQ="; | |
doCheck = false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment