trying to get niri to work again

This commit is contained in:
twoneis 2023-11-17 20:59:34 +01:00
parent bd3ecc25cc
commit e060d03c34
3 changed files with 58 additions and 53 deletions

View file

@ -1,55 +1,5 @@
{ lib { ... }: {
, rustPlatform environment.systemPackages = [
, fetchFromGitHub import ./niri
, 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

@ -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;
};
}