diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2020-10-08 00:05:57 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-08 00:05:57 -0300 |
commit | 8aeaba64d757e5cc626ac525f7504308de83741f (patch) | |
tree | c701a29223d5b7d9e50ac32e18bf1a9734a4ecbe /pkgs | |
parent | e4538ab8bb9066e1990f36d302c2c1aabcf8e30e (diff) | |
parent | c9cea8264e5bb6e72f35f0f4e146bfe65cbef1a1 (diff) |
Merge pull request #99604 from berbiche/cagebreak
cagebreak: init at 1.4.2
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/window-managers/cagebreak/default.nix | 52 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 54 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 22817b63f1f8..7ec3297f45fb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -28226,4 +28226,6 @@ in bottom = callPackage ../tools/system/bottom {}; + cagebreak = callPackage ../applications/window-managers/cagebreak/default.nix {}; + } |