trying to get niri to work again
This commit is contained in:
parent
bd3ecc25cc
commit
e060d03c34
3 changed files with 58 additions and 53 deletions
|
@ -1,55 +1,5 @@
|
|||
{ 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
|
||||
{ ... }: {
|
||||
environment.systemPackages = [
|
||||
import ./niri
|
||||
];
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
|
55
modules/niri/niri/default.nix
Normal file
55
modules/niri/niri/default.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue