From 0d0c04f4e9c169630688d06defa14570a3cfbb32 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 1 Sep 2024 20:19:11 -0700 Subject: format --- lib/rust-utils.nix | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) (limited to 'lib/rust-utils.nix') diff --git a/lib/rust-utils.nix b/lib/rust-utils.nix index 87c9869..8b0efb6 100644 --- a/lib/rust-utils.nix +++ b/lib/rust-utils.nix @@ -1,22 +1,30 @@ -{ lib -, rustPlatform -, fetchFromGitHub +{ + lib, + rustPlatform, + fetchFromGitHub, }: { mkRustPackage = - { pname - , version - , githubOwner - , githubHash - , cargoHash - , description ? null - , license - , maintainers - , buildInputs ? [ ] - , nativeBuildInputs ? [ ] + { + pname, + version, + githubOwner, + githubHash, + cargoHash, + description ? null, + license, + maintainers, + buildInputs ? [ ], + nativeBuildInputs ? [ ], }: rustPlatform.buildRustPackage rec { - inherit pname version buildInputs nativeBuildInputs cargoHash; + inherit + pname + version + buildInputs + nativeBuildInputs + cargoHash + ; src = fetchFromGitHub { owner = githubOwner; -- cgit v1.2.3