cagebreak: 1.8.0 -> 1.8.1

Cagebreak now installs the default configuration.
This commit is contained in:
Nicolas Berbiche 2021-11-24 16:56:53 -05:00
parent e5f9c5215a
commit 077ba7f0dd
No known key found for this signature in database
GPG Key ID: FA5696EDF35DA0B6

View File

@ -24,13 +24,13 @@
stdenv.mkDerivation rec {
pname = "cagebreak";
version = "1.8.0";
version = "1.8.1";
src = fetchFromGitHub {
owner = "project-repo";
repo = pname;
rev = version;
hash = "sha256-tWfHJajAOYZJ73GckZWWTdVz75YmHA7t/qDhM7+tJgk=";
hash = "sha256-YaLGRlvppTUCSHFlt3sEfHgN3pYHuc5oGt3dt0DDw3I=";
};
nativeBuildInputs = [
@ -63,14 +63,12 @@ stdenv.mkDerivation rec {
"-Dxwayland=${lib.boolToString withXwayland}"
];
# TODO: investigate why is this happening
postPatch = ''
# TODO: investigate why is this happening
sed -i -e 's|<drm_fourcc.h>|<libdrm/drm_fourcc.h>|' *.c
'';
postInstall = ''
install -d $out/share/cagebreak/
install -m644 $src/examples/config $out/share/cagebreak/
# Patch cagebreak to read its default configuration from $out/share/cagebreak
sed -i "s|/etc/xdg/cagebreak|$out/share/cagebreak|" meson.build cagebreak.c
'';
postFixup = lib.optionalString withXwayland ''