diff options
Diffstat (limited to 'lib/rust-utils.nix')
| -rw-r--r-- | lib/rust-utils.nix | 36 |
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; |