From 827f0443cfb3950a411381282f49f736b1853cb8 Mon Sep 17 00:00:00 2001 From: Gregor Grigorjan Date: Fri, 23 Feb 2024 11:45:42 +0200 Subject: [PATCH] wleave: add missing resources --- pkgs/tools/wayland/wleave/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/tools/wayland/wleave/default.nix b/pkgs/tools/wayland/wleave/default.nix index e90fed24f7fc..94fd6e123792 100644 --- a/pkgs/tools/wayland/wleave/default.nix +++ b/pkgs/tools/wayland/wleave/default.nix @@ -36,7 +36,18 @@ rustPlatform.buildRustPackage rec { glib ]; + postPatch = '' + substituteInPlace style.css \ + --replace-fail "/usr/share/wleave" "$out/share/${pname}" + + substituteInPlace src/main.rs \ + --replace-fail "/etc/wleave" "$out/etc/${pname}" + ''; + postInstall = '' + install -Dm644 -t "$out/etc/wleave" {"style.css","layout"} + install -Dm644 -t "$out/share/wleave/icons" icons/* + for f in man/*.scd; do local page="man/$(basename "$f" .scd)" scdoc < "$f" > "$page"