diff --git a/Cargo.lock b/Cargo.lock index 248dc3b..f402255 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1847,7 +1847,6 @@ version = "0.2.0" dependencies = [ "arboard", "env_logger", - "fontdb", "ksni", "log", "notify-rust", diff --git a/Cargo.toml b/Cargo.toml index c1ed34a..4c2dfb8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,6 @@ authors = [ [dependencies] arboard = {version = "3.3.2", features = ["wl-clipboard-rs", "wayland-data-control"]} env_logger = "0.11" -fontdb = "0.16" ksni = {git="https://github.com/iovxw/ksni", branch="zbus" } log = "0.4" notify-rust = {version = "4.10", default_features = false, features = ["d"]} diff --git a/nix/package.nix b/nix/package.nix index 5a07b4a..80cf180 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -25,15 +25,17 @@ in ]); }; - cargoLock.lockFile = ../Cargo.lock; + cargoLock = { + lockFile = ../Cargo.lock; + outputHashes = { + "ksni-0.2.1" = "sha256-CKjOUGsqlMdgnNY6j29pP6S8wdZ73/v1dMyiIurlltI="; + }; + }; strictDeps = true; + nativeBuildInputs = [pkg-config python3]; buildInputs = [dbus xorg.libxcb]; - nativeBuildInputs = [ - pkg-config - python3 - ]; meta = { description = "Rust implementation of tailscale-systray"; diff --git a/src/svg/renderer.rs b/src/svg/renderer.rs index c4e7347..6250133 100644 --- a/src/svg/renderer.rs +++ b/src/svg/renderer.rs @@ -2,7 +2,7 @@ use ksni::Icon; use resvg::{ self, tiny_skia::{Pixmap, Transform}, - usvg::{Options, Tree}, + usvg::{fontdb, Options, Tree}, }; const SVG_DATA: &str = include_str!("assets/tailscale.svg");