-
Notifications
You must be signed in to change notification settings - Fork 5
/
flake.nix
56 lines (51 loc) · 1.48 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
inputs = {
hyprland.url = "github:hyprwm/Hyprland";
};
outputs = {
self,
hyprland,
...
}: let
inherit (hyprland.inputs) nixpkgs;
eachSystem = nixpkgs.lib.genAttrs (import hyprland.inputs.systems);
pkgsFor = eachSystem (system: import nixpkgs {localSystem = system;});
in {
packages = eachSystem (system: let
pkgs = pkgsFor.${system};
in rec {
hyprsplit = pkgs.stdenv.mkDerivation {
pname = "hyprsplit";
version = "0.1";
src = ./.;
nativeBuildInputs = with pkgs; [pkg-config meson ninja];
buildInputs = with pkgs;
[
hyprland.packages.${system}.hyprland.dev
pixman
libdrm
]
++ hyprland.packages.${system}.hyprland.buildInputs;
meta = with pkgs.lib; {
homepage = "https://github.com/shezdy/hyprsplit";
description = "Hyprland plugin for separate sets of workspaces on each monitor";
license = licenses.bsd3;
platforms = platforms.linux;
};
};
default = hyprsplit;
});
devShells = eachSystem (system: let
pkgs = pkgsFor.${system};
in {
default = pkgs.mkShell.override {stdenv = pkgs.gcc13Stdenv;} {
shellHook = ''
meson setup build --reconfigure
cp ./build/compile_commands.json ./compile_commands.json
'';
name = "hyprsplit";
inputsFrom = [self.packages.${system}.hyprsplit];
};
});
};
}