mirror of
https://github.com/Trensa-Organization/split-monitor-workspaces.git
synced 2025-03-15 11:13:39 +01:00
add flake
This commit is contained in:
parent
07696f7f8d
commit
ad1966a2b6
1 changed files with 48 additions and 0 deletions
48
flake.nix
Normal file
48
flake.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
inputs = {
|
||||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
};
|
||||
|
||||
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 {
|
||||
split-monitor-workspaces = pkgs.stdenv.mkDerivation {
|
||||
pname = "split-monitor-workspaces";
|
||||
version = "0.1";
|
||||
src = ./src;
|
||||
|
||||
nativeBuildInputs = with pkgs; [ meson pkg-config ];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
hyprland.packages.${system}.hyprland.dev
|
||||
pango
|
||||
cairo
|
||||
] ++ hyprland.packages.${system}.hyprland.buildInputs;
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
homepage = "https://github.com/Duckonaut/split-monitor-workspaces";
|
||||
description = "A small Hyprland plugin to provide awesome-like workspace behavior";
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
};
|
||||
|
||||
default = split-monitor-workspaces;
|
||||
});
|
||||
|
||||
devShells = hyprlandSystems (system: pkgs: {
|
||||
default = pkgs.mkShell {
|
||||
name = "split-monitor-workspaces";
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
clang-tools_16
|
||||
bear
|
||||
];
|
||||
|
||||
inputsFrom = [ self.packages.${system}.split-monitor-workspaces ];
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue