From bf8679ba94885ecca2c5ef55ea37e012ac03cfee Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Mon, 3 May 2021 21:20:17 -0300 Subject: [PATCH 1/2] cagebreak: 1.6.0 -> 1.7.0 --- .../window-managers/cagebreak/default.nix | 14 +++++++++----- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/window-managers/cagebreak/default.nix b/pkgs/applications/window-managers/cagebreak/default.nix index 505d1cb1520c..548d0dc94b1f 100644 --- a/pkgs/applications/window-managers/cagebreak/default.nix +++ b/pkgs/applications/window-managers/cagebreak/default.nix @@ -8,20 +8,20 @@ stdenv.mkDerivation rec { pname = "cagebreak"; - version = "1.6.0"; + version = "1.7.0"; src = fetchFromGitHub { owner = "project-repo"; - repo = "cagebreak"; + repo = pname; rev = version; - hash = "sha256-F7fqDVbJS6pVgmj6C1/l9PAaz5yzcYpaq6oc6a6v/Qk="; + hash = "sha256-HpAjJHu5sxZKof3ydnU3wcP5GpnH6Ax8m1T1vVoq+oI="; }; - nativeBuildInputs = [ meson ninja pkg-config wayland scdoc makeWrapper ]; + nativeBuildInputs = [ meson ninja pkg-config wayland scdoc pandoc makeWrapper ]; buildInputs = [ wlroots wayland wayland-protocols pixman libxkbcommon cairo - pango fontconfig pandoc systemd + pango fontconfig systemd mesa # for libEGL headers ]; @@ -33,6 +33,10 @@ stdenv.mkDerivation rec { "-Dman-pages=true" ]; + postPatch = '' + sed -i -e 's|||' *.c + ''; + postInstall = '' mkdir -p $contrib/share/cagebreak cp $src/examples/config $contrib/share/cagebreak/config diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 04effbffbd3d..0126d8a12077 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31275,9 +31275,7 @@ in bottom = callPackage ../tools/system/bottom {}; - cagebreak = callPackage ../applications/window-managers/cagebreak/default.nix { - wlroots = wlroots_0_12; - }; + cagebreak = callPackage ../applications/window-managers/cagebreak/default.nix { }; psftools = callPackage ../os-specific/linux/psftools {}; From 1c516ffb3cae14d464e9d027644947d84a420a21 Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Tue, 4 May 2021 16:27:52 -0300 Subject: [PATCH 2/2] cagebreak: cosmetic rewrite --- .../window-managers/cagebreak/default.nix | 61 ++++++++++++++----- 1 file changed, 47 insertions(+), 14 deletions(-) diff --git a/pkgs/applications/window-managers/cagebreak/default.nix b/pkgs/applications/window-managers/cagebreak/default.nix index 548d0dc94b1f..de996f080e76 100644 --- a/pkgs/applications/window-managers/cagebreak/default.nix +++ b/pkgs/applications/window-managers/cagebreak/default.nix @@ -1,9 +1,24 @@ -{ lib, stdenv, fetchFromGitHub -, meson, ninja, pkg-config, wayland, scdoc, makeWrapper -, wlroots, wayland-protocols, pixman, libxkbcommon -, cairo , pango, fontconfig, pandoc, systemd, mesa -, withXwayland ? true, xwayland +{ lib +, stdenv +, fetchFromGitHub +, cairo +, fontconfig +, libxkbcommon +, makeWrapper +, mesa +, meson +, ninja , nixosTests +, pandoc +, pango +, pixman +, pkg-config +, scdoc +, systemd +, wayland +, wayland-protocols +, withXwayland ? true , xwayland +, wlroots }: stdenv.mkDerivation rec { @@ -17,20 +32,38 @@ stdenv.mkDerivation rec { hash = "sha256-HpAjJHu5sxZKof3ydnU3wcP5GpnH6Ax8m1T1vVoq+oI="; }; - nativeBuildInputs = [ meson ninja pkg-config wayland scdoc pandoc makeWrapper ]; - - buildInputs = [ - wlroots wayland wayland-protocols pixman libxkbcommon cairo - pango fontconfig systemd - mesa # for libEGL headers + nativeBuildInputs = [ + makeWrapper + meson + ninja + pandoc + pkg-config + scdoc + wayland ]; - outputs = [ "out" "contrib" ]; + buildInputs = [ + cairo + fontconfig + libxkbcommon + mesa # for libEGL headers + pango + pixman + systemd + wayland + wayland-protocols + wlroots + ]; + + outputs = [ + "out" + "contrib" + ]; mesonFlags = [ - "-Dxwayland=${lib.boolToString withXwayland}" - "-Dversion_override=${version}" "-Dman-pages=true" + "-Dversion_override=${version}" + "-Dxwayland=${lib.boolToString withXwayland}" ]; postPatch = ''