15 lines
467 B
Nix
15 lines
467 B
Nix
final: prev: {
|
|
spotify =
|
|
final.runCommand prev.spotify.name {
|
|
inherit (prev.spotify) meta;
|
|
nativeBuildInputs = [final.makeWrapper];
|
|
} ''
|
|
shopt -s extglob
|
|
mkdir -p $out/bin
|
|
ln -sf ${prev.spotify}/!(bin) $out/
|
|
ln -sf ${prev.spotify}/bin/* $out/bin/
|
|
wrapProgram $out/bin/spotify \
|
|
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform --ozone-platform=wayland}}"
|
|
'';
|
|
}
|