hy3/flake.nix
2024-05-19 01:48:12 -07:00

39 lines
1.1 KiB
Nix

{
inputs = {
hyprland.url = "github:hyprwm/Hyprland?rev=cba1ade848feac44b2eda677503900639581c3f4";
};
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;
};
};
});
};
}