Merge pull request #122491 from mayflower/i3status-rust-fonts-themes

i3status-rust: fix themes and icon handling
This commit is contained in:
Sandro 2021-05-11 00:40:01 +02:00 committed by GitHub
commit c503e32c5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,8 +30,19 @@ rustPlatform.buildRustPackage rec {
cargoBuildFlags = [
"--features=notmuch"
"--features=maildir"
"--features=pulseaudio"
];
prePatch = ''
substituteInPlace src/util.rs \
--replace "/usr/share/i3status-rust" "$out/share"
'';
postInstall = ''
mkdir -p $out/share
cp -R files/* $out/share
'';
postFixup = ''
wrapProgram $out/bin/i3status-rs --prefix PATH : "${ethtool}/bin"
'';