Skip to content

Commit

Permalink
patch Cargo.toml
Browse files Browse the repository at this point in the history
this will avoid the duplicate Rust dep issue until nixpkgs#282798 is in
  • Loading branch information
ziguana committed Jan 31, 2025
1 parent 7038d13 commit 9bda4ac
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkgs/cosmic-ext-applet-system-monitor/0001-cargo-toml.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/Cargo.toml b/Cargo.toml
index 81563c3..82c5ebd 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -29,6 +29,9 @@ features = ["applet", "tokio", "wayland"]
version = "0.15"
features = ["fluent-system", "desktop-requester"]

+[patch."https://github.com/smithay/client-toolkit.git"]
+sctk = { package = "smithay-client-toolkit", version = "=0.19.2" }
+
[package.metadata.deb]
license-file = "LICENSE"
assets = [
1 change: 1 addition & 0 deletions pkgs/cosmic-ext-applet-system-monitor/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ rustPlatform.buildRustPackage {
hash = "sha256-AwpZ2nb3YPfOAFpkoKZrDm4264UmVH96SmKLc0l81R4=";
};

patches = [ ./0001-cargo-toml.patch ];

useFetchCargoVendor = true;
cargoHash = "";
Expand Down

0 comments on commit 9bda4ac

Please sign in to comment.