aboutsummaryrefslogtreecommitdiffhomepage
path: root/flake.nix
diff options
context:
space:
mode:
authorTanish2002 <[email protected]>2022-05-08 21:57:40 +0530
committerTanish2002 <[email protected]>2022-05-08 21:57:40 +0530
commit857ea436946745c6077790fa62d3b7a171b58551 (patch)
tree470a897603ba2a36e1e5c095aa163f63f1514c79 /flake.nix
parent434184aa323cb9eb253d39a724381747c82fb68d (diff)
downloadHyprland-857ea436946745c6077790fa62d3b7a171b58551.tar.gz
Hyprland-857ea436946745c6077790fa62d3b7a171b58551.zip
add flake.nix and other required files for nix build
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 00000000..39a76179
--- /dev/null
+++ b/flake.nix
@@ -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; };
+ });
+}