mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-23 14:55:57 +01:00
eb3f3d9854
* move to hw-s * hyprland-share-picker: add missing sources to meson, format CMake * CMake: bump hw-s version * CMake: fix protocolnew external protos * CMake: get wayland.xml from wayland-scanner * Nix: add missing deps * Meson: use hw-s for protocols, add hyprutils --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
58 lines
1.5 KiB
Nix
58 lines
1.5 KiB
Nix
{
|
|
description = "xdg-desktop-portal-hyprland";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
# <https://github.com/nix-systems/nix-systems>
|
|
systems.url = "github:nix-systems/default-linux";
|
|
|
|
hyprland-protocols = {
|
|
url = "github:hyprwm/hyprland-protocols";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.systems.follows = "systems";
|
|
};
|
|
|
|
hyprlang = {
|
|
url = "github:hyprwm/hyprlang";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.systems.follows = "systems";
|
|
};
|
|
|
|
hyprutils = {
|
|
url = "github:hyprwm/hyprutils";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.systems.follows = "systems";
|
|
};
|
|
|
|
hyprwayland-scanner = {
|
|
url = "github:hyprwm/hyprwayland-scanner";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.systems.follows = "systems";
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
systems,
|
|
...
|
|
} @ inputs: let
|
|
inherit (nixpkgs) lib;
|
|
eachSystem = lib.genAttrs (import systems);
|
|
pkgsFor = eachSystem (system:
|
|
import nixpkgs {
|
|
localSystem = system;
|
|
overlays = [self.overlays.default];
|
|
});
|
|
in {
|
|
overlays = import ./nix/overlays.nix {inherit self inputs lib;};
|
|
|
|
packages = eachSystem (system: {
|
|
inherit (pkgsFor.${system}) xdg-desktop-portal-hyprland;
|
|
default = self.packages.${system}.xdg-desktop-portal-hyprland;
|
|
});
|
|
|
|
formatter = eachSystem (system: nixpkgs.legacyPackages.${system}.alejandra);
|
|
};
|
|
}
|