mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-07 17:05:59 +01:00
0728326d6e
- Removed all outputs except for "packages" - Track nixos-unstable instead of stable - Cleanup installPhase
34 lines
851 B
Nix
34 lines
851 B
Nix
{
|
|
description = "Hyprland is a dynamic tiling Wayland compositor that doesn't sacrifice on its looks";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
wlroots = {
|
|
url = "gitlab:wlroots/wlroots?host=gitlab.freedesktop.org";
|
|
flake = false;
|
|
};
|
|
};
|
|
|
|
outputs = inputs @ {
|
|
self,
|
|
nixpkgs,
|
|
...
|
|
}: let
|
|
supportedSystems = [
|
|
"aarch64-linux"
|
|
"x86_64-linux"
|
|
];
|
|
genSystems = nixpkgs.lib.genAttrs supportedSystems;
|
|
pkgsFor = nixpkgs.legacyPackages;
|
|
in {
|
|
packages = genSystems (system: {
|
|
wlroots = pkgsFor.${system}.wlroots.overrideAttrs (prev: {
|
|
src = inputs.wlroots;
|
|
});
|
|
default = pkgsFor.${system}.callPackage ./default.nix {
|
|
version = self.lastModifiedDate;
|
|
inherit (self.packages.${system}) wlroots;
|
|
};
|
|
});
|
|
};
|
|
}
|