diff options
author | Michael Weiss <dev.primeos@gmail.com> | 2019-08-28 22:46:51 +0200 |
---|---|---|
committer | Michael Weiss <dev.primeos@gmail.com> | 2019-08-29 19:17:58 +0200 |
commit | 8ca970d6a7f290982d0bcf6c5dbb9d1e2ae649f7 (patch) | |
tree | 28d7db75b350fb17b30e1a79ff464b663546bdde /pkgs/applications/window-managers/cage | |
parent | 61ba5d88ef87fa5f484518054810c90da3835409 (diff) |
cage: init at 0.1.1
Diffstat (limited to 'pkgs/applications/window-managers/cage')
-rw-r--r-- | pkgs/applications/window-managers/cage/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/cage/default.nix b/pkgs/applications/window-managers/cage/default.nix new file mode 100644 index 000000000000..be45d68dc5df --- /dev/null +++ b/pkgs/applications/window-managers/cage/default.nix @@ -0,0 +1,42 @@ +{ stdenv, fetchFromGitHub +, meson, ninja, pkgconfig, makeWrapper +, wlroots, wayland, wayland-protocols, pixman, libxkbcommon +, systemd, mesa, libX11 +, xwayland ? null +}: + +stdenv.mkDerivation rec { + pname = "cage"; + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "Hjdskes"; + repo = pname; + rev = "v${version}"; + sha256 = "1vp4mfkflrjmlgyx5mkbzdi3iq58m76q7l9dfrsk85xn0642d6q1"; + }; + + nativeBuildInputs = [ meson ninja pkgconfig makeWrapper ]; + + buildInputs = [ + wlroots wayland wayland-protocols pixman libxkbcommon + # TODO: Not specified but required: + systemd mesa libX11 + ]; + + enableParallelBuilding = true; + + mesonFlags = [ "-Dxwayland=${stdenv.lib.boolToString (xwayland != null)}" ]; + + postFixup = stdenv.lib.optionalString (xwayland != null) '' + wrapProgram $out/bin/cage --prefix PATH : "${xwayland}/bin" + ''; + + meta = with stdenv.lib; { + description = "A Wayland kiosk"; + homepage = https://www.hjdskes.nl/projects/cage/; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ primeos ]; + }; +} |