diff options
author | Aylur <[email protected]> | 2024-09-01 03:23:40 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-09-01 03:23:40 +0200 |
commit | 8407b447180448e9314a62148cd2cf05a9de3aca (patch) | |
tree | 76382d2455d359ea1948b7b2a221833448089a2a /hyprland/flake.nix | |
parent | 054cbb9a46fffecc854f2c1fbd59f8d011305bad (diff) | |
parent | 20617eb29f0f16300d157e6481e8e4845958c7af (diff) |
merge hyprland
Diffstat (limited to 'hyprland/flake.nix')
-rw-r--r-- | hyprland/flake.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/hyprland/flake.nix b/hyprland/flake.nix new file mode 100644 index 0000000..c6b4efd --- /dev/null +++ b/hyprland/flake.nix @@ -0,0 +1,49 @@ +{ + description = "Library and cli tool for querying applications"; + + inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + + outputs = { self, nixpkgs }: + let + version = builtins.replaceStrings ["\n"] [""] (builtins.readFile ./version); + system = "x86_64-linux"; + pkgs = import nixpkgs { inherit system; }; + + nativeBuildInputs = with pkgs; [ + gobject-introspection + meson + pkg-config + ninja + vala + ]; + + buildInputs = with pkgs; [ + glib + json-glib + ]; + in { + packages.${system} = rec { + default = hyprland; + hyprland = pkgs.stdenv.mkDerivation { + inherit nativeBuildInputs buildInputs; + pname = "astal-hyprland"; + version = version; + src = ./.; + outputs = ["out" "dev"]; + }; + }; + + devShells.${system} = { + default = pkgs.mkShell { + inherit nativeBuildInputs buildInputs; + }; + hyprland = pkgs.mkShell { + inherit nativeBuildInputs; + buildInputs = buildInputs ++ [ + pkgs.gjs + self.packages.${system}.default + ]; + }; + }; + }; +} |