diff options
| author | Fuwn <[email protected]> | 2024-10-14 19:06:01 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-14 19:06:01 -0700 |
| commit | 49c43afb3436f9dd25ab36dca856e6b8fb2d5007 (patch) | |
| tree | 61c5c9a14fcc117ae54e8d2de4156863e191e3e4 /lib/build-rust-package.nix | |
| parent | feat(pkgs): use upstream of t (diff) | |
| download | tsutsumi-49c43afb3436f9dd25ab36dca856e6b8fb2d5007.tar.xz tsutsumi-49c43afb3436f9dd25ab36dca856e6b8fb2d5007.zip | |
feat(pkgs): use upstream of chan-downloader
Diffstat (limited to 'lib/build-rust-package.nix')
| -rw-r--r-- | lib/build-rust-package.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/build-rust-package.nix b/lib/build-rust-package.nix index 4443e53..8a788cf 100644 --- a/lib/build-rust-package.nix +++ b/lib/build-rust-package.nix @@ -8,12 +8,15 @@ version, githubOwner, githubHash, - cargoHash, + cargoHash ? null, description ? null, license, maintainers ? null, buildInputs ? [ ], nativeBuildInputs ? [ ], + cargoLock ? null, + postPatch ? null, + cargoPatches ? [ ], }: rustPlatform.buildRustPackage rec { inherit @@ -22,6 +25,9 @@ rustPlatform.buildRustPackage rec { buildInputs nativeBuildInputs cargoHash + cargoLock + postPatch + cargoPatches ; src = fetchFromGitHub { |