mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 06:03:15 -06:00
53 lines
937 B
Nix
53 lines
937 B
Nix
{
|
|
inputs,
|
|
system,
|
|
lib,
|
|
}:
|
|
let
|
|
inherit (builtins) map;
|
|
inherit (lib) flakeFromSystem;
|
|
|
|
flake = flakeFromSystem system;
|
|
pkgs = import inputs.nixpkgs {
|
|
inherit system;
|
|
overlays = [
|
|
(flake.overlay "lix-module")
|
|
(flake.overlay "hyprland-contrib")
|
|
(flake.overlay "nixpkgs-wayland")
|
|
];
|
|
};
|
|
myPackages = map [
|
|
"tsm"
|
|
"hyprman"
|
|
"zls"
|
|
] flake.pkg;
|
|
|
|
hyprPackages = with (flake.pkgs "hyprland"); [
|
|
default
|
|
xdg-desktop-portal-hyprland
|
|
];
|
|
in
|
|
{
|
|
makePackages =
|
|
pkgs.runCommandLocal "build-third-party"
|
|
{
|
|
src = ./.;
|
|
nativeBuildInputs =
|
|
(with pkgs; [
|
|
pixi
|
|
swww
|
|
nixVersions.stable
|
|
])
|
|
++ [
|
|
(flake.pkgs "roc").full
|
|
(flake.pkgs "zig2nix").zig.master.bin
|
|
]
|
|
++ myPackages
|
|
++ hyprPackages;
|
|
|
|
}
|
|
''
|
|
mkdir "$out"
|
|
'';
|
|
|
|
}
|