wleave: add missing resources

This commit is contained in:
Gregor Grigorjan 2024-02-23 11:45:42 +02:00
parent a9134fc109
commit 827f0443cf
No known key found for this signature in database
GPG Key ID: D55B9940B30A04A2

@ -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"