hy3/flake.nix

40 lines
1.2 KiB
Nix
Raw Normal View History

{
inputs = {
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1&rev=bc6b0880dda2607a80f000c134f573c970452a0f";
};
2023-04-28 00:45:44 -07:00
outputs = { self, hyprland, ... }: let
2023-04-28 00:01:26 -07:00
inherit (hyprland.inputs) nixpkgs;
2024-03-05 03:13:50 -08:00
hyprlandSystems = fn: nixpkgs.lib.genAttrs
(builtins.attrNames hyprland.packages)
(system: fn system nixpkgs.legacyPackages.${system});
2023-04-28 00:01:26 -07:00
2024-03-05 03:13:50 -08:00
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;
};
2023-04-28 00:01:26 -07:00
default = hy3;
});
devShells = hyprlandSystems (system: pkgs: {
2024-03-05 03:13:50 -08:00
default = import ./shell.nix {
inherit pkgs;
hlversion = props.version;
hyprland = hyprland.packages.${system}.hyprland-debug;
};
2024-03-05 03:13:50 -08:00
impure = import ./shell.nix {
pkgs = import <nixpkgs> {};
hlversion = props.version;
hyprland = (pkgs.appendOverlays [ hyprland.overlays.hyprland-packages ]).hyprland-debug.overrideAttrs {
dontStrip = true;
};
};
});
2023-04-28 00:01:26 -07:00
};
}