summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-01 20:19:11 -0700
committerFuwn <[email protected]>2024-09-01 20:19:11 -0700
commit0d0c04f4e9c169630688d06defa14570a3cfbb32 (patch)
tree74e5c4c4587360580894f9c8eded0088d9af5d88 /lib
parenthi (diff)
downloadnixos-config-0d0c04f4e9c169630688d06defa14570a3cfbb32.tar.xz
nixos-config-0d0c04f4e9c169630688d06defa14570a3cfbb32.zip
format
Diffstat (limited to 'lib')
-rw-r--r--lib/rust-utils.nix36
1 files changed, 22 insertions, 14 deletions
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;