mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-01 04:31:57 -07:00
add flake.nix and other required files for nix build
This commit is contained in:
30
flake.nix
Normal file
30
flake.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
# 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 }:
|
||||
utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
version = "git";
|
||||
in rec {
|
||||
packages = {
|
||||
hyprland = pkgs.callPackage ./nix-build {
|
||||
inherit version;
|
||||
src = self;
|
||||
inherit (nixpkgs-wayland.packages.${system}) wlroots;
|
||||
};
|
||||
};
|
||||
defaultPackage = packages.hyprland;
|
||||
apps.hyprland = utils.lib.mkApp { drv = packages.hyprland; };
|
||||
defaultApp = apps.hyprland;
|
||||
apps.default =
|
||||
utils.lib.mkApp { drv = self.packages."${system}".default; };
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user