30 lines
985 B
Nix
30 lines
985 B
Nix
{
|
|
pkgs = import <nixpkgs> {};
|
|
|
|
# Dependencies (replace if versions differ)
|
|
deps = pkgs.stdenv + pkgs.libdrm + pkgs.sdbus + pkgs.wayland + pkgs.pipewire;
|
|
|
|
# Build xdg-desktop-portal-hyprland (adjust as needed)
|
|
xdgDesktopPortalHyprland = pkgs.buildPackage {
|
|
name = "xdg-desktop-portal-hyprland";
|
|
src = pkgs.fetchFromGitHub {
|
|
rev = "v0.5.2"; # Replace with desired version
|
|
owner = "hyprwm";
|
|
repo = "xdg-desktop-portal-hyprland";
|
|
};
|
|
buildInputs = deps;
|
|
meta = with pkgs; in {
|
|
# Set installation paths (optional, adjust as needed)
|
|
buildInputs = pkgs.lib.make (deps ++ [ stdenv.cc ]);
|
|
installPhase = pkgs.mkDerivation {
|
|
name = "xdg-desktop-portal-hyprland-install";
|
|
buildInputs = with pkgs; in deps ++ [ buildInputs ];
|
|
shellHook = ''
|
|
cp -r ${src}/build/lib ${pkgs.lib}/
|
|
cp -r ${src}/build/include ${pkgs.lib.include}/xdg-desktop-portal-hyprland
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|