diff options
| author | Fuwn <[email protected]> | 2024-09-14 03:53:59 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-14 03:53:59 -0700 |
| commit | e46742c57278d2633ab4c237b778d62ab7be9567 (patch) | |
| tree | 214303c8d08fc8ee7c0c6c9e09ea8458bb8cdb57 /pkgs | |
| parent | cpu: remove duplicate microcode key (diff) | |
| download | nixos-config-e46742c57278d2633ab4c237b778d62ab7be9567.tar.xz nixos-config-e46742c57278d2633ab4c237b778d62ab7be9567.zip | |
lib: refactor build-rust-package
Diffstat (limited to 'pkgs')
| -rw-r--r-- | pkgs/cargo-clean-all.nix | 6 | ||||
| -rw-r--r-- | pkgs/chan-downloader.nix | 6 | ||||
| -rw-r--r-- | pkgs/git-sumi.nix | 6 | ||||
| -rw-r--r-- | pkgs/swaddle.nix | 6 |
4 files changed, 16 insertions, 8 deletions
diff --git a/pkgs/cargo-clean-all.nix b/pkgs/cargo-clean-all.nix index bfa33d3..945373b 100644 --- a/pkgs/cargo-clean-all.nix +++ b/pkgs/cargo-clean-all.nix @@ -4,9 +4,11 @@ fetchFromGitHub, }: let - rustUtils = import ../lib/rust-utils.nix { inherit lib rustPlatform fetchFromGitHub; }; + buildRustPackage = import ../lib/build-rust-package.nix { + inherit lib rustPlatform fetchFromGitHub; + }; in -rustUtils.mkRustPackage { +buildRustPackage { pname = "cargo-clean-all"; version = "21b0d4a451629f1f9073dbab8b32a6de85b33f75"; githubOwner = "dnlmlr"; diff --git a/pkgs/chan-downloader.nix b/pkgs/chan-downloader.nix index 9de5c7c..6129d28 100644 --- a/pkgs/chan-downloader.nix +++ b/pkgs/chan-downloader.nix @@ -6,9 +6,11 @@ openssl, }: let - rustUtils = import ../lib/rust-utils.nix { inherit lib rustPlatform fetchFromGitHub; }; + buildRustPackage = import ../lib/build-rust-package.nix { + inherit lib rustPlatform fetchFromGitHub; + }; in -rustUtils.mkRustPackage { +buildRustPackage { pname = "chan-downloader"; version = "e418e909ab90c8700d51b08e170051804a6919d2"; githubOwner = "Fuwn"; diff --git a/pkgs/git-sumi.nix b/pkgs/git-sumi.nix index 504f1d4..e58fcab 100644 --- a/pkgs/git-sumi.nix +++ b/pkgs/git-sumi.nix @@ -4,9 +4,11 @@ fetchFromGitHub, }: let - rustUtils = import ../lib/rust-utils.nix { inherit lib rustPlatform fetchFromGitHub; }; + buildRustPackage = import ../lib/build-rust-package.nix { + inherit lib rustPlatform fetchFromGitHub; + }; in -rustUtils.mkRustPackage { +buildRustPackage { pname = "git-sumi"; version = "3822ce390a2a04eec4513f83586f775e59f3cbf1"; githubOwner = "welpo"; diff --git a/pkgs/swaddle.nix b/pkgs/swaddle.nix index ddb5c43..171b804 100644 --- a/pkgs/swaddle.nix +++ b/pkgs/swaddle.nix @@ -6,9 +6,11 @@ pkg-config, }: let - rustUtils = import ../lib/rust-utils.nix { inherit lib rustPlatform fetchFromGitHub; }; + buildRustPackage = import ../lib/build-rust-package.nix { + inherit lib rustPlatform fetchFromGitHub; + }; in -rustUtils.mkRustPackage { +buildRustPackage { pname = "swaddle"; version = "5a91352b3fc84d3af5d82eeda90f4b6844126dcb"; githubOwner = "ATTron"; |