hy3/flake.nix

40 lines
1.2 KiB
Nix
Raw Permalink Normal View History

{
inputs = {
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1&rev=928d1dd38a6e4a791d4a4374a4a3bf02311adbb2";
};
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
hyprlandVersion = nixpkgs.lib.removeSuffix "\n" (builtins.readFile "${hyprland}/VERSION");
2024-03-05 03:13:50 -08:00
in {
packages = hyprlandSystems (system: pkgs: rec {
hy3 = pkgs.callPackage ./default.nix {
hyprland = hyprland.packages.${system}.hyprland;
hlversion = hyprlandVersion;
};
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 = hyprlandVersion;
2024-03-05 03:13:50 -08:00
hyprland = hyprland.packages.${system}.hyprland-debug;
};
2024-03-05 03:13:50 -08:00
impure = import ./shell.nix {
pkgs = import <nixpkgs> {};
hlversion = hyprlandVersion;
hyprland = (pkgs.appendOverlays [ hyprland.overlays.hyprland-packages ]).hyprland-debug.overrideAttrs {
dontStrip = true;
};
};
});
2023-04-28 00:01:26 -07:00
};
}