forked from DreamMaoMao/hycov
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
31 lines (28 loc) · 871 Bytes
/
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
{
description = "Hyprland Plugins";
inputs.hyprland.url = "github:hyprwm/Hyprland";
outputs =
{ self
, hyprland
,
}:
let
inherit (hyprland.inputs) nixpkgs;
withPkgsFor = fn: nixpkgs.lib.genAttrs (builtins.attrNames hyprland.packages) (system: fn system nixpkgs.legacyPackages.${system});
in
{
packages = withPkgsFor (system: pkgs: {
hycov = pkgs.callPackage ./default.nix {
inherit (hyprland.packages.${system}) hyprland;
stdenv = pkgs.gcc13Stdenv;
};
});
devShells = withPkgsFor (system: pkgs: {
default = pkgs.mkShell.override { stdenv = pkgs.gcc13Stdenv; } {
name = "hyprland-plugins";
buildInputs = [ hyprland.packages.${system}.hyprland ];
inputsFrom = [ hyprland.packages.${system}.hyprland ];
};
});
};
}