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