diff options
author | Nicolas Berbiche <nicolas@normie.dev> | 2020-10-05 22:18:44 -0400 |
---|---|---|
committer | Nicolas Berbiche <nicolas@normie.dev> | 2020-10-05 22:18:44 -0400 |
commit | c9cea8264e5bb6e72f35f0f4e146bfe65cbef1a1 (patch) | |
tree | fb351c452da4395d063e7073657acb8ddbfd8024 /pkgs/applications | |
parent | 9243c64e7fa4bb8ce84f97a52e955f3e8fe8e733 (diff) |
cagebreak: init at 1.4.2
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/window-managers/cagebreak/default.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/cagebreak/default.nix b/pkgs/applications/window-managers/cagebreak/default.nix new file mode 100644 index 000000000000..7be643a23571 --- /dev/null +++ b/pkgs/applications/window-managers/cagebreak/default.nix @@ -0,0 +1,52 @@ +{ stdenv, fetchFromGitHub +, meson, ninja, pkg-config, wayland, scdoc, makeWrapper +, wlroots, wayland-protocols, pixman, libxkbcommon +, cairo , pango, fontconfig, pandoc, systemd +, withXwayland ? true, xwayland +, nixosTests +}: + +stdenv.mkDerivation rec { + pname = "cagebreak"; + version = "1.4.2"; + + src = fetchFromGitHub { + owner = "project-repo"; + repo = "cagebreak"; + rev = version; + hash = "sha256-+Ww1rsUR7qe/BixLPR8GiRc3C6QmpLzWpT2wym8b4/M="; + }; + + nativeBuildInputs = [ meson ninja pkg-config wayland scdoc makeWrapper ]; + + buildInputs = [ + wlroots wayland wayland-protocols pixman libxkbcommon cairo + pango fontconfig pandoc systemd + ]; + + outputs = [ "out" "contrib" ]; + + mesonFlags = [ + "-Dxwayland=${stdenv.lib.boolToString withXwayland}" + "-Dversion_override=${version}" + ]; + + postInstall = '' + mkdir -p $contrib/share/cagebreak + cp $src/examples/config $contrib/share/cagebreak/config + ''; + + postFixup = stdenv.lib.optionalString withXwayland '' + wrapProgram $out/bin/cagebreak --prefix PATH : "${xwayland}/bin" + ''; + + passthru.tests.basic = nixosTests.cagebreak; + + meta = with stdenv.lib; { + description = "A Wayland tiling compositor inspired by ratpoison"; + homepage = "https://github.com/project-repo/cagebreak"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ berbiche ]; + }; +} |