xdg-desktop-portal-hyprland/flake.nix

60 lines
1.5 KiB
Nix
Raw Normal View History

2022-12-04 00:44:12 +01:00
{
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";
};
2024-01-03 13:03:53 +01:00
hyprlang = {
url = "github:hyprwm/hyprlang";
inputs.hyprutils.follows = "hyprutils";
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";
};
};
2022-12-04 00:44:12 +01:00
outputs = {
self,
nixpkgs,
systems,
2022-12-04 00:44:12 +01:00
...
} @ inputs: let
2022-12-04 00:44:12 +01:00
inherit (nixpkgs) lib;
eachSystem = lib.genAttrs (import systems);
pkgsFor = eachSystem (system:
import nixpkgs {
localSystem = system;
overlays = [self.overlays.default];
});
2022-12-04 00:44:12 +01:00
in {
overlays = import ./nix/overlays.nix {inherit self inputs lib;};
2022-12-04 00:44:12 +01:00
packages = eachSystem (system: {
2024-10-28 02:58:56 +01:00
inherit (pkgsFor.${system}) xdg-desktop-portal-hyprland sdbus-cpp_2;
default = self.packages.${system}.xdg-desktop-portal-hyprland;
});
2022-12-04 00:44:12 +01:00
formatter = eachSystem (system: nixpkgs.legacyPackages.${system}.alejandra);
2022-12-04 00:44:12 +01:00
};
}