1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00
nixpkgs/pkgs/applications/window-managers/cage/default.nix

49 lines
1.6 KiB
Nix
Raw Normal View History

2020-01-22 20:15:24 +00:00
{ stdenv, fetchFromGitHub, fetchpatch
2019-08-28 21:46:51 +01:00
, meson, ninja, pkgconfig, makeWrapper
, wlroots, wayland, wayland-protocols, pixman, libxkbcommon
, systemd, libGL, libX11
2019-08-28 21:46:51 +01:00
, xwayland ? null
}:
stdenv.mkDerivation rec {
2020-01-22 20:15:24 +00:00
pname = "cage-unstable";
version = "2020-01-18";
# The last stable release (0.1.1) would require at least the following 3 patches:
# - https://github.com/Hjdskes/cage/commit/33bb3c818c5971777b6f09d8821e7f078d38d262.patch
# - https://github.com/Hjdskes/cage/commit/51e6c760da51e2b885737d61a61cdc965bb9269d.patch
# - https://github.com/Hjdskes/cage/commit/84216ca2a417b237ad61c11e2f3ebbcb91681ece.patch
# Which need to be adapted due to other changes. At this point it seems
# better to use the current master version until the next stable release.
2019-08-28 21:46:51 +01:00
src = fetchFromGitHub {
owner = "Hjdskes";
2020-01-22 20:15:24 +00:00
repo = "cage";
rev = "cc1f975c442ebd691b70196d76aa120ead717810";
sha256 = "1gkqx26pvlw00b3fgx6sh87yyjfzyj51jwxvbf9k117npkrf4b2g";
2019-08-28 21:46:51 +01:00
};
nativeBuildInputs = [ meson ninja pkgconfig makeWrapper wayland ];
2019-08-28 21:46:51 +01:00
buildInputs = [
wlroots wayland wayland-protocols pixman libxkbcommon
# TODO: Not specified but required:
systemd libGL libX11
2019-08-28 21:46:51 +01:00
];
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/";
2019-08-28 21:46:51 +01:00
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ primeos ];
};
}