git.iko.soy/typeable/nixpkgs
on master help sign in
cagebreak: 1.8.0 -> 1.8.1

Cagebreak now installs the default configuration.

commit077ba7f0dd992c0648cf595ffa9c5a61dfae85e9 authorNicolas Berbiche <nicolas@normie.dev> dateWed 24 Nov 2021, 16:56 (5 years ago) parente5f9c52
1 file changed+5−7
pkgs/applications/window-managers/cagebreak/default.nix+5−7
pkgs/applications/window-managers/cagebreak/default.nix+5−7
@@ -24,13 +24,13 @@
2424
2525stdenv.mkDerivation rec {
2626 pname = "cagebreak";
27− version = "1.8.0";
27+ version = "1.8.1";
2828
2929 src = fetchFromGitHub {
3030 owner = "project-repo";
3131 repo = pname;
3232 rev = version;
33− hash = "sha256-tWfHJajAOYZJ73GckZWWTdVz75YmHA7t/qDhM7+tJgk=";
33+ hash = "sha256-YaLGRlvppTUCSHFlt3sEfHgN3pYHuc5oGt3dt0DDw3I=";
3434 };
3535
3636 nativeBuildInputs = [
@@ -63,14 +63,12 @@ stdenv.mkDerivation rec {
6363 "-Dxwayland=${lib.boolToString withXwayland}"
6464 ];
6565
66− # TODO: investigate why is this happening
6766 postPatch = ''
67+ # TODO: investigate why is this happening
6868 sed -i -e 's|<drm_fourcc.h>|<libdrm/drm_fourcc.h>|' *.c
69− '';
7069
71− postInstall = ''
72− install -d $out/share/cagebreak/
73− install -m644 $src/examples/config $out/share/cagebreak/
70+ # Patch cagebreak to read its default configuration from $out/share/cagebreak
71+ sed -i "s|/etc/xdg/cagebreak|$out/share/cagebreak|" meson.build cagebreak.c
7472 '';
7573
7674 postFixup = lib.optionalString withXwayland ''