boxbuddy: 2.2.5 -> 2.2.8

This commit is contained in:
aleksana 2024-06-22 15:27:52 +08:00
parent f16ae124e8
commit 12af9eb0d1

View File

@ -9,23 +9,23 @@
rustPlatform.buildRustPackage rec {
pname = "boxbuddy";
version = "2.2.5";
version = "2.2.8";
src = fetchFromGitHub {
owner = "Dvlv";
repo = "BoxBuddyRS";
rev = version;
hash = "sha256-Dy7mSBraMHAno8cIk9f6/Ofsm2ZGSb7VS5Wy1o+ZoC8=";
hash = "sha256-AW2RKtxvF4WxCyb6QEDuTEAOy/DqBxoZrtc2JGeKFtk=";
};
cargoHash = "sha256-NB93bw2mMCVmZWpxCJGusXp2DgotjrlHUlsd0mb+fBA=";
cargoHash = "sha256-J7VJSOY7Cj9Dsq0jj9uVTGJOessyx3WOlDbg7dS+1dg=";
# The software assumes it is installed either in flatpak or in the home directory
# so the xdg data path needs to be patched here
postPatch = ''
substituteInPlace src/utils.rs \
--replace-fail '{data_home}/locale' "$out/share/locale" \
--replace-fail '{data_home}/icons/boxbuddy/{}' "$out/share/icons/boxbuddy/{}"
--replace-fail '{data_home}/icons/boxbuddy/{icon}' "$out/share/icons/boxbuddy/{icon}"
'';
nativeBuildInputs = [