swayr: 0.16.1 -> 0.19.0

This commit is contained in:
Tom Wieczorek 2022-06-27 12:22:12 +02:00 committed by Tom Wieczorek
parent f2a54d2d8a
commit 3ec5b6c84a
No known key found for this signature in database
GPG key ID: FE33A2282371E831
2 changed files with 13 additions and 10 deletions

View file

@ -2,21 +2,24 @@
rustPlatform.buildRustPackage rec {
pname = "swayr";
version = "0.16.1";
version = "0.19.0";
src = fetchFromSourcehut {
owner = "~tsdh";
repo = "swayr";
rev = "v${version}";
sha256 = "sha256-c/VHD5VceddhKanuId4rG1Tl+9Bg7zUmIqq4gMsy1e0=";
rev = "swayr-${version}";
sha256 = "sha256-ubindhU3G1iHqf/yiXIJk87uI3o5y2lfs22tbIfiqv4=";
};
cargoSha256 = "sha256-0aGMWuU6DvBr9tvgDd1GZqhlY8bGCuPs8pSc5A03L3w=";
cargoSha256 = "sha256-X6BYLD7YmlHCO+3b3Ubai222tvsZUmZrwm3vS2PeqDY=";
patches = [
./icon-paths.patch
];
# don't build swayrbar
buildAndTestSubdir = pname;
preCheck = ''
export HOME=$TMPDIR
'';

View file

@ -1,8 +1,8 @@
diff --git a/src/config.rs b/src/config.rs
index de7d04b..291114b 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -197,6 +197,12 @@ impl Default for Format {
diff --git a/swayr/src/config.rs b/swayr/src/config.rs
index bc6ec98..48cdc65 100644
--- a/swayr/src/config.rs
+++ b/swayr/src/config.rs
@@ -271,6 +271,12 @@ impl Default for Format {
),
urgency_end: Some("</span>".to_string()),
icon_dirs: Some(vec![
@ -13,5 +13,5 @@ index de7d04b..291114b 100644
+ "~/.nix-profile/share/icons/hicolor/48x48/apps".to_string(),
+ "~/.nix-profile/share/pixmaps".to_string(),
"/usr/share/icons/hicolor/scalable/apps".to_string(),
"/usr/share/icons/hicolor/64x64/apps".to_string(),
"/usr/share/icons/hicolor/48x48/apps".to_string(),
"/usr/share/pixmaps".to_string(),