added niri

This commit is contained in:
twoneis 2023-11-13 19:35:06 +01:00
parent 64ca6702d9
commit 401bdad36a
3 changed files with 3727 additions and 0 deletions

3671
modules/niri/Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

55
modules/niri/default.nix Normal file
View file

@ -0,0 +1,55 @@
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, libxkbcommon
, pipewire
, seatd
, udev
, wayland
, libinput
, mesa
}:
rustPlatform.buildRustPackage {
pname = "niri";
version = "unstable-2023-10-31";
src = fetchFromGitHub {
owner = "YaLTeR";
repo = "niri";
rev = "8679eaf34a791fcbb3048a77cfb22540a0d24792";
hash = "sha256-QYH3sG1TKJbKBeZdI9FtmJuY5DFmMdOJviYPrPK8FHo=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"smithay-0.3.0" = "sha256-cRBJ8r2fQ8d97DADOxfmUF5JYcOHQ05u8tMhVXmbrbE=";
};
};
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
buildInputs = [
libxkbcommon
pipewire
seatd
udev
wayland
libinput
mesa # libgbm
];
meta = with lib; {
description = "A scrollable-tiling Wayland compositor";
homepage = "https://github.com/YaLTeR/niri";
license = licenses.gpl3Only;
maintainers = with maintainers; [ iogamaster ];
mainProgram = "niri";
inherit (wayland.meta) platforms;
};
}

View file

@ -5,6 +5,7 @@
{ pkgs, ... }: { { pkgs, ... }: {
imports = [ imports = [
../gnome ../gnome
../niri
]; ];
# Enable nix flakes # Enable nix flakes