42 lines
926 B
Nix
42 lines
926 B
Nix
{
|
|
description = "Hyprland test wrapper from nixpkgs only";
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
|
|
|
outputs =
|
|
{ self, nixpkgs, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = false;
|
|
};
|
|
|
|
hypr = pkgs.hyprland;
|
|
configFile = "${self}/hyprland.lua";
|
|
|
|
verifyScript = pkgs.writeShellScript "hyprland-verify" ''
|
|
exec ${hypr}/bin/Hyprland --config ${configFile} --verify-config
|
|
'';
|
|
|
|
runScript = pkgs.writeShellScript "hyprland-run" ''
|
|
exec ${hypr}/bin/Hyprland --config ${configFile}
|
|
'';
|
|
in
|
|
{
|
|
apps.${system} = {
|
|
default = {
|
|
type = "app";
|
|
program = "${verifyScript}";
|
|
};
|
|
|
|
run = {
|
|
type = "app";
|
|
program = "${runScript}";
|
|
};
|
|
};
|
|
|
|
packages.${system}.default = hypr;
|
|
};
|
|
}
|