nix/overlays: overlay pipewire 1.2.0

This commit is contained in:
Mihai Fufezan 2024-07-05 18:47:46 +03:00
parent bc7131ce67
commit b9b97e5ba2
Signed by: fufexan
SSH Key Fingerprint: SHA256:SdnKmEpJrDu1+2UO1QpB/Eg4HKcdDi6n+xSRqFNJVpg
1 changed files with 28 additions and 8 deletions

View File

@ -19,7 +19,9 @@ in {
default = mkJoinedOverlays (with self.overlays; [
xdg-desktop-portal-hyprland
]);
xdg-desktop-portal-hyprland = final: prev: {
xdg-desktop-portal-hyprland = lib.composeManyExtensions [
self.overlays.pipewire
(final: prev: {
xdg-desktop-portal-hyprland = final.callPackage ./default.nix {
stdenv = prev.gcc13Stdenv;
inherit (final) hyprland-protocols;
@ -27,5 +29,23 @@ in {
inherit version;
inherit (inputs.hyprlang.packages.${prev.system}) hyprlang;
};
})
];
# TODO: remove when https://nixpk.gs/pr-tracker.html?pr=322933 lands in unstable
pipewire = final: prev: {
pipewire = prev.pipewire.overrideAttrs (self: super: {
version = "1.2.0";
src = final.fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "pipewire";
repo = "pipewire";
rev = self.version;
hash = "sha256-hjjiH7+JoyRTcdbPDvkUEpO72b5p8CbTD6Un/vZrHL8=";
};
mesonFlags = super.mesonFlags ++ [(final.lib.mesonEnable "snap" false)];
});
};
}