2022-05-08 18:27:40 +02:00
|
|
|
# Based on fortuneteller2k's (https://github.com/fortuneteller2k/nixpkgs-f2k) package repo
|
|
|
|
{
|
|
|
|
description =
|
|
|
|
"Hyprland is a dynamic tiling Wayland compositor that doesn't sacrifice on its looks.";
|
|
|
|
inputs = {
|
2022-05-16 17:01:28 +02:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.11";
|
2022-05-08 18:27:40 +02:00
|
|
|
utils.url = "github:numtide/flake-utils";
|
|
|
|
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
|
2022-05-16 17:01:28 +02:00
|
|
|
wlroots-git = {
|
|
|
|
url = "gitlab:wlroots/wlroots?host=gitlab.freedesktop.org";
|
|
|
|
flake = false;
|
|
|
|
};
|
2022-05-08 18:27:40 +02:00
|
|
|
};
|
|
|
|
|
2022-05-16 17:01:28 +02:00
|
|
|
outputs = { self, nixpkgs, utils, nixpkgs-wayland, wlroots-git }:
|
2022-05-14 17:36:05 +02:00
|
|
|
{
|
|
|
|
overlay = final: prev: {
|
|
|
|
hyprland = prev.callPackage self {
|
|
|
|
src = self;
|
2022-05-16 17:01:28 +02:00
|
|
|
wlroots = (nixpkgs-wayland.overlays.default final prev).wlroots.overrideAttrs (prev: rec {
|
|
|
|
src = wlroots-git;
|
|
|
|
});
|
2022-05-14 17:36:05 +02:00
|
|
|
};
|
|
|
|
};
|
2022-05-15 22:40:26 +02:00
|
|
|
overlays.default = self.overlay;
|
|
|
|
} // utils.lib.eachSystem [ "aarch64-linux" "x86_64-linux" ] (system:
|
2022-05-08 20:18:13 +02:00
|
|
|
let pkgs = nixpkgs.legacyPackages.${system};
|
2022-05-08 18:27:40 +02:00
|
|
|
in rec {
|
|
|
|
packages = {
|
2022-05-08 19:23:49 +02:00
|
|
|
hyprland = pkgs.callPackage self {
|
2022-05-08 18:27:40 +02:00
|
|
|
src = self;
|
2022-05-16 17:01:28 +02:00
|
|
|
wlroots = nixpkgs-wayland.packages.${system}.wlroots.overrideAttrs (prev: rec {
|
|
|
|
src = wlroots-git;
|
|
|
|
});
|
2022-05-08 18:27:40 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
defaultPackage = packages.hyprland;
|
2022-05-14 18:20:04 +02:00
|
|
|
apps.hyprland = utils.lib.mkApp { drv = packages.hyprland; };
|
2022-05-14 18:20:22 +02:00
|
|
|
defaultApp = apps.hyprland;
|
2022-05-14 18:20:04 +02:00
|
|
|
apps.default =
|
2022-05-15 22:40:26 +02:00
|
|
|
utils.lib.mkApp { drv = self.packages.${system}.hyprland; };
|
2022-05-08 18:27:40 +02:00
|
|
|
});
|
|
|
|
}
|