Skip to content

Commit

Permalink
cargo-tauri: format using nixfmt-rfc-style
Browse files Browse the repository at this point in the history
  • Loading branch information
ryand56 authored and alyssais committed Aug 15, 2024
1 parent e47adea commit 46209d0
Showing 1 changed file with 35 additions and 16 deletions.
51 changes: 35 additions & 16 deletions pkgs/development/tools/rust/cargo-tauri/default.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, openssl
, pkg-config
, glibc
, libsoup
, cairo
, gtk3
, webkitgtk
, darwin
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
openssl,
pkg-config,
glibc,
libsoup,
cairo,
gtk3,
webkitgtk,
darwin,
}:

let
Expand All @@ -32,15 +33,33 @@ rustPlatform.buildRustPackage rec {

cargoHash = "sha256-fGnre+vPzWtpp9NLLQtb/Feh06pBQipkCQ2kFCDTC+Y=";

buildInputs = [ openssl ] ++ lib.optionals stdenv.isLinux [ glibc libsoup cairo gtk3 webkitgtk ]
++ lib.optionals stdenv.isDarwin [ CoreServices Security SystemConfiguration ];
buildInputs =
[ openssl ]
++ lib.optionals stdenv.isLinux [
glibc
libsoup
cairo
gtk3
webkitgtk
]
++ lib.optionals stdenv.isDarwin [
CoreServices
Security
SystemConfiguration
];
nativeBuildInputs = [ pkg-config ];

meta = with lib; {
description = "Build smaller, faster, and more secure desktop applications with a web frontend";
mainProgram = "cargo-tauri";
homepage = "https://tauri.app/";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ dit7ya happysalada ];
license = with licenses; [
asl20 # or
mit
];
maintainers = with maintainers; [
dit7ya
happysalada
];
};
}

0 comments on commit 46209d0

Please sign in to comment.