summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-05-16 17:39:26 +0200
committerGitHub <noreply@github.com>2022-05-16 17:39:26 +0200
commit25979fac1d77b2e1bed4a518dfe1897d653c7a89 (patch)
tree677aa2cccbe479a6b0b90e445b3f81d37fc00edf /flake.nix
parent50f978e518c83872a25a47b5ddde310ec24ac203 (diff)
parent0aacdbdfb6e4b791d294e693d598dce7fd4cb50c (diff)
Merge pull request #78 from Narice/main
Providing an overlay for nix users and small fixes on flake.nix and default.nix
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix26
1 files changed, 21 insertions, 5 deletions
diff --git a/flake.nix b/flake.nix
index 002bf09b..2a4d5e0a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -3,25 +3,41 @@
description =
"Hyprland is a dynamic tiling Wayland compositor that doesn't sacrifice on its looks.";
inputs = {
- nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.11";
utils.url = "github:numtide/flake-utils";
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
+ wlroots-git = {
+ url = "gitlab:wlroots/wlroots?host=gitlab.freedesktop.org";
+ flake = false;
+ };
};
- outputs = { self, nixpkgs, utils, nixpkgs-wayland }:
- utils.lib.eachDefaultSystem (system:
+ outputs = { self, nixpkgs, utils, nixpkgs-wayland, wlroots-git }:
+ {
+ overlay = final: prev: {
+ hyprland = prev.callPackage self {
+ src = self;
+ wlroots = (nixpkgs-wayland.overlays.default final prev).wlroots.overrideAttrs (prev: rec {
+ src = wlroots-git;
+ });
+ };
+ };
+ overlays.default = self.overlay;
+ } // utils.lib.eachSystem [ "aarch64-linux" "x86_64-linux" ] (system:
let pkgs = nixpkgs.legacyPackages.${system};
in rec {
packages = {
hyprland = pkgs.callPackage self {
src = self;
- inherit (nixpkgs-wayland.packages.${system}) wlroots;
+ wlroots = nixpkgs-wayland.packages.${system}.wlroots.overrideAttrs (prev: rec {
+ src = wlroots-git;
+ });
};
};
defaultPackage = packages.hyprland;
apps.hyprland = utils.lib.mkApp { drv = packages.hyprland; };
defaultApp = apps.hyprland;
apps.default =
- utils.lib.mkApp { drv = self.packages."${system}".default; };
+ utils.lib.mkApp { drv = self.packages.${system}.hyprland; };
});
}