44 lines
1.4 KiB
Nix
44 lines
1.4 KiB
Nix
{ self, config, pkgs, lib, isUnstable, ... }:
|
|
|
|
{
|
|
nixpkgs.overlays = if isUnstable then [
|
|
# https://github.com/NixOS/nixpkgs/pull/186130
|
|
(self: super: {
|
|
tidal-hifi = super.tidal-hifi.overrideAttrs (old: {
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.imagemagick ];
|
|
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"
|
|
|
|
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: {
|
|
wireplumber = super.wireplumber.overrideAttrs (old: {
|
|
patches = (old.patches or [ ]) ++ [
|
|
(super.fetchpatch {
|
|
url =
|
|
"https://gitlab.freedesktop.org/pipewire/wireplumber/-/merge_requests/398.patch";
|
|
sha256 = "sha256-rEp/3fjBRbkFuw4rBW6h8O5hcy/oBP3DW7bPu5rVfNY=";
|
|
})
|
|
];
|
|
});
|
|
})
|
|
] else
|
|
[ ];
|
|
}
|