Merge pull request #290835 from gekoke/gekoke/wleave-config

wleave: add missing resources
This commit is contained in:
Pol Dellaiera 2024-02-24 21:49:03 +01:00 committed by GitHub
commit 1e8a2d7352
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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