mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{
|
|
inputs = {
|
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
|
};
|
|
|
|
outputs = { self, hyprland, ... }: let
|
|
inherit (hyprland.inputs) nixpkgs;
|
|
|
|
hyprlandSystems = fn: nixpkgs.lib.genAttrs
|
|
(builtins.attrNames hyprland.packages)
|
|
(system: fn system nixpkgs.legacyPackages.${system});
|
|
|
|
props = builtins.fromJSON (builtins.readFile "${hyprland}/props.json");
|
|
in {
|
|
packages = hyprlandSystems (system: pkgs: rec {
|
|
hy3 = pkgs.callPackage ./default.nix {
|
|
hyprland = hyprland.packages.${system}.hyprland;
|
|
hlversion = props.version;
|
|
};
|
|
default = hy3;
|
|
});
|
|
|
|
devShells = hyprlandSystems (system: pkgs: {
|
|
default = import ./shell.nix {
|
|
inherit pkgs;
|
|
hlversion = props.version;
|
|
hyprland = hyprland.packages.${system}.hyprland-debug;
|
|
};
|
|
|
|
impure = import ./shell.nix {
|
|
pkgs = import <nixpkgs> {};
|
|
hlversion = props.version;
|
|
hyprland = (pkgs.appendOverlays [ hyprland.overlays.hyprland-packages ]).hyprland-debug.overrideAttrs {
|
|
dontStrip = true;
|
|
};
|
|
};
|
|
});
|
|
};
|
|
}
|