Hyprland/flake.nix

46 lines
1.2 KiB
Nix
Raw Normal View History

{
description = "Hyprland is a dynamic tiling Wayland compositor that doesn't sacrifice on its looks";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
wlroots = {
2022-05-16 17:01:28 +02:00
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: {
2022-05-17 14:03:58 +02:00
version = inputs.wlroots.lastModifiedDate;
src = inputs.wlroots;
});
default = pkgsFor.${system}.callPackage ./default.nix {
version = self.lastModifiedDate;
inherit (self.packages.${system}) wlroots;
};
});
2022-05-17 15:10:00 +02:00
2022-05-17 14:03:58 +02:00
formatter = genSystems (system: pkgsFor.${system}.alejandra);
2022-05-17 15:10:00 +02:00
# TODO Provide a nixos module for easy installation and configuration
2022-05-17 14:03:58 +02:00
# nixosModules.default = import ./module.nix;
2022-05-17 15:10:00 +02:00
# Deprecated
overlay = _: prev: {
hyprland = self.packages.${prev.system}.default;
};
};
}