hy3/flake.nix

53 lines
1.4 KiB
Nix
Raw Normal View History

{
inputs = {
2023-06-14 21:43:20 -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 {
2023-04-28 00:01:26 -07:00
packages = hyprlandSystems (system: pkgs: rec {
2023-06-04 14:36:47 -07:00
hy3 = pkgs.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; [
2023-04-28 00:01:26 -07:00
hyprland.packages.${system}.hyprland.dev
2023-05-16 03:02:26 -07:00
pango
cairo
2023-04-28 00:01:26 -07:00
] ++ hyprland.packages.${system}.hyprland.buildInputs;
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: {
2023-06-04 14:36:47 -07:00
default = pkgs.mkShell {
2023-04-28 00:01:26 -07:00
name = "hy3";
nativeBuildInputs = with pkgs; [
2023-06-14 21:43:20 -07:00
clang-tools
bear
];
2023-04-28 00:45:44 -07:00
inputsFrom = [ self.packages.${system}.hy3 ];
};
});
2023-04-28 00:01:26 -07:00
};
}