hy3/flake.nix

57 lines
1.5 KiB
Nix
Raw Normal View History

{
inputs = {
2023-09-13 00:58:52 -07:00
hyprland.url = "github:hyprwm/Hyprland";
};
2023-04-28 00:45:44 -07:00
outputs = { self, hyprland, ... }: let
2023-04-28 00:01:26 -07:00
inherit (hyprland.inputs) nixpkgs;
hyprlandSystems = fn: nixpkgs.lib.genAttrs (builtins.attrNames hyprland.packages) (system: fn system nixpkgs.legacyPackages.${system});
2023-04-28 00:45:44 -07:00
in {
packages = hyprlandSystems (system: pkgs: let
hyprlandPackage = hyprland.packages.${system}.hyprland;
in rec {
hy3 = hyprlandPackage.stdenv.mkDerivation {
pname = "hy3";
version = "0.1";
src = ./.;
2023-04-28 00:01:26 -07:00
nativeBuildInputs = with pkgs; [ cmake pkg-config ];
2023-05-16 03:02:26 -07:00
buildInputs = with pkgs; [
hyprlandPackage.dev
2023-05-16 03:02:26 -07:00
pango
cairo
] ++ hyprlandPackage.buildInputs;
2023-04-28 00:01:26 -07:00
2023-04-30 20:32:01 -07:00
# no noticeable impact on performance and greatly assists debugging
cmakeBuildType = "Debug";
dontStrip = true;
2023-04-28 00:01:26 -07:00
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;
};
};
2023-04-28 00:01:26 -07:00
default = hy3;
});
devShells = hyprlandSystems (system: pkgs: {
default = pkgs.mkShell.override {
stdenv = pkgs.gcc13Stdenv;
} {
2023-04-28 00:01:26 -07:00
name = "hy3";
nativeBuildInputs = with pkgs; [
clang-tools_17
bear
];
2023-04-28 00:45:44 -07:00
inputsFrom = [ self.packages.${system}.hy3 ];
};
});
2023-04-28 00:01:26 -07:00
};
}