2022-05-08 19:27:40 +03: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 = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
utils.url = "github:numtide/flake-utils";
|
|
|
|
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, utils, nixpkgs-wayland }:
|
2022-05-14 18:36:05 +03:00
|
|
|
{
|
|
|
|
overlay = final: prev: {
|
|
|
|
hyprland = prev.callPackage self {
|
|
|
|
src = self;
|
|
|
|
inherit (nixpkgs-wayland.overlay.waylandPkgs) wlroots;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
} // utils.lib.eachDefaultSystem (system:
|
2022-05-08 21:18:13 +03:00
|
|
|
let pkgs = nixpkgs.legacyPackages.${system};
|
2022-05-08 19:27:40 +03:00
|
|
|
in rec {
|
2022-05-14 18:36:05 +03:00
|
|
|
overlays = [ self.overlay ];
|
2022-05-08 19:27:40 +03:00
|
|
|
packages = {
|
2022-05-08 20:23:49 +03:00
|
|
|
hyprland = pkgs.callPackage self {
|
2022-05-08 19:27:40 +03:00
|
|
|
src = self;
|
|
|
|
inherit (nixpkgs-wayland.packages.${system}) wlroots;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
defaultPackage = packages.hyprland;
|
2022-05-14 19:20:04 +03:00
|
|
|
apps.hyprland = utils.lib.mkApp { drv = packages.hyprland; };
|
|
|
|
defaultApp = apps.${system}.hyprland;
|
|
|
|
apps.default =
|
|
|
|
utils.lib.mkApp { drv = self.packages."${system}".hyprland; };
|
2022-05-08 19:27:40 +03:00
|
|
|
});
|
|
|
|
}
|