mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
53 lines
1.5 KiB
Nix
53 lines
1.5 KiB
Nix
{
|
|
inputs = {
|
|
#hyprland.url = "github:hyprwm/Hyprland";
|
|
hyprland.url = "github:outfoxxed/Hyprland?rev=51441d5b9de13335e5723cdbb78e372ebe36490e";
|
|
};
|
|
|
|
outputs = { self, hyprland, ... }: let
|
|
inherit (hyprland.inputs) nixpkgs;
|
|
hyprlandSystems = fn: nixpkgs.lib.genAttrs (builtins.attrNames hyprland.packages) (system: fn system nixpkgs.legacyPackages.${system});
|
|
in {
|
|
packages = hyprlandSystems (system: pkgs: rec {
|
|
hy3 = pkgs.gcc12Stdenv.mkDerivation {
|
|
pname = "hy3";
|
|
version = "0.1";
|
|
src = ./.;
|
|
|
|
nativeBuildInputs = with pkgs; [ cmake pkg-config ];
|
|
|
|
buildInputs = with pkgs; [
|
|
hyprland.packages.${system}.hyprland.dev
|
|
pango
|
|
cairo
|
|
] ++ hyprland.packages.${system}.hyprland.buildInputs;
|
|
|
|
# no noticeable impact on performance and greatly assists debugging
|
|
cmakeBuildType = "Debug";
|
|
dontStrip = true;
|
|
|
|
meta = with pkgs.lib; {
|
|
homepage = "https://github.com/outfoxxed/hy3";
|
|
description = "Hyprland plugin for an i3 / sway like manual tiling layout";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
};
|
|
};
|
|
|
|
default = hy3;
|
|
});
|
|
|
|
devShells = hyprlandSystems (system: pkgs: {
|
|
default = pkgs.mkShell.override { stdenv = pkgs.gcc12Stdenv; } {
|
|
name = "hy3";
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
clang-tools_15
|
|
bear
|
|
];
|
|
|
|
inputsFrom = [ self.packages.${system}.hy3 ];
|
|
};
|
|
});
|
|
};
|
|
}
|