overlay: temp fix for #194589

This commit is contained in:
Aaron Bieber 2022-10-05 07:51:18 -06:00
parent 751c167fa4
commit 9695dd5111
No known key found for this signature in database

View File

@ -1,8 +1,28 @@
{ self, config, pkgs, lib, isUnstable, ... }:
{
nixpkgs.overlays = if isUnstable then
[
nixpkgs.overlays = if isUnstable then [
# https://github.com/NixOS/nixpkgs/pull/194589
(self: super: {
tidal-hifi = super.tidal-hifi.overrideAttrs (old: {
postFixup = ''
makeWrapper $out/opt/tidal-hifi/tidal-hifi $out/bin/tidal-hifi \
--prefix LD_LIBRARY_PATH : "${
lib.makeLibraryPath super.tidal-hifi.buildInputs
}" \
"''${gappsWrapperArgs[@]}"
substituteInPlace $out/share/applications/tidal-hifi.desktop \
--replace "/opt/tidal-hifi/tidal-hifi" "tidal-hifi" \
--replace "/usr/share/icons/hicolor/0x0/apps/tidal-hifi.png" "tidal-hifi.png"
for size in 48 64 128 256 512; do
mkdir -p $out/share/icons/hicolor/''${size}x''${size}/apps/
convert $out/share/icons/hicolor/0x0/apps/tidal-hifi.png \
-resize ''${size}x''${size} $out/share/icons/hicolor/''${size}x''${size}/apps/tidal-hifi.png
done
'';
});
})
(self: super: {
zig = super.zig.overrideAttrs (old: {
@ -28,8 +48,7 @@
});
})
]
else
] else
[ ];
}