mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
cage: init at 0.1.1
This commit is contained in:
parent
61ba5d88ef
commit
8ca970d6a7
42
pkgs/applications/window-managers/cage/default.nix
Normal file
42
pkgs/applications/window-managers/cage/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -17535,6 +17535,8 @@ in
|
||||
|
||||
bviplus = callPackage ../applications/editors/bviplus { };
|
||||
|
||||
cage = callPackage ../applications/window-managers/cage { };
|
||||
|
||||
calf = callPackage ../applications/audio/calf {
|
||||
inherit (gnome2) libglade;
|
||||
stdenv = gcc5Stdenv;
|
||||
|
Loading…
Reference in New Issue
Block a user