2021-06-01 05:55:15 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromBitbucket
|
2021-01-01 16:49:48 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, alacritty
|
|
|
|
, cage
|
|
|
|
, cairo
|
|
|
|
, libxkbcommon
|
|
|
|
, udev
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
|
|
|
, wlroots
|
2021-04-09 12:34:33 +01:00
|
|
|
, mesa
|
2021-01-01 16:49:48 +00:00
|
|
|
, xwayland
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wio";
|
2021-06-27 05:35:41 +01:00
|
|
|
version = "0.0.0+unstable=2021-06-27";
|
2021-01-01 16:49:48 +00:00
|
|
|
|
2021-06-01 05:55:15 +01:00
|
|
|
src = fetchFromBitbucket {
|
|
|
|
owner = "anderson_torres";
|
|
|
|
repo = pname;
|
2021-06-27 05:35:41 +01:00
|
|
|
rev = "e0b258777995055d69e61a0246a6a64985743f42";
|
|
|
|
sha256 = "sha256-8H9fOnZsNjjq9XvOv68F4RRglGNluxs5/jp/h4ROLiI=";
|
2021-01-01 16:49:48 +00:00
|
|
|
};
|
|
|
|
|
2021-06-01 05:55:15 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
makeWrapper
|
2021-05-14 18:11:19 +01:00
|
|
|
];
|
2021-01-01 16:49:48 +00:00
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
libxkbcommon
|
2021-06-01 05:55:15 +01:00
|
|
|
mesa # for libEGL
|
2021-01-01 16:49:48 +00:00
|
|
|
udev
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
wlroots
|
|
|
|
xwayland
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/wio \
|
2021-01-15 13:21:58 +00:00
|
|
|
--prefix PATH ":" "${lib.makeBinPath [ alacritty cage ]}"
|
2021-01-01 16:49:48 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-06-01 05:55:15 +01:00
|
|
|
homepage = "https://wio-project.org/";
|
2021-01-01 16:49:48 +00:00
|
|
|
description = "That Plan 9 feel, for Wayland";
|
|
|
|
longDescription = ''
|
|
|
|
Wio is a Wayland compositor for Linux and FreeBSD which has a similar look
|
|
|
|
and feel to plan9's rio.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2021-06-01 05:55:15 +01:00
|
|
|
platforms = with platforms; linux;
|
2021-01-01 16:49:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru.providedSessions = [ "wio" ];
|
|
|
|
}
|
|
|
|
# TODO: factor Linux-specific options
|