cagebreak: 1.7.0 -> 1.7.1

Now it uses scdoc as manpage generator.
This commit is contained in:
AndersonTorres 2021-05-07 14:34:18 -03:00
parent 42f21db6a8
commit 732c698614

View File

@ -9,7 +9,6 @@
, meson , meson
, ninja , ninja
, nixosTests , nixosTests
, pandoc
, pango , pango
, pixman , pixman
, pkg-config , pkg-config
@ -23,20 +22,19 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "cagebreak"; pname = "cagebreak";
version = "1.7.0"; version = "1.7.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "project-repo"; owner = "project-repo";
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha256-HpAjJHu5sxZKof3ydnU3wcP5GpnH6Ax8m1T1vVoq+oI="; hash = "sha256-1IztedN5/I/4TDKHLJ26fSrDsvJ5QAr+cbzS2PQITDE=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
makeWrapper makeWrapper
meson meson
ninja ninja
pandoc
pkg-config pkg-config
scdoc scdoc
wayland wayland
@ -66,26 +64,27 @@ stdenv.mkDerivation rec {
"-Dxwayland=${lib.boolToString withXwayland}" "-Dxwayland=${lib.boolToString withXwayland}"
]; ];
# TODO: investigate why is this happening
postPatch = '' postPatch = ''
sed -i -e 's|<drm_fourcc.h>|<libdrm/drm_fourcc.h>|' *.c sed -i -e 's|<drm_fourcc.h>|<libdrm/drm_fourcc.h>|' *.c
''; '';
postInstall = '' postInstall = ''
mkdir -p $contrib/share/cagebreak install -d $contrib/share/cagebreak/
cp $src/examples/config $contrib/share/cagebreak/config install -m644 $src/examples/config $contrib/share/cagebreak/
''; '';
postFixup = lib.optionalString withXwayland '' postFixup = lib.optionalString withXwayland ''
wrapProgram $out/bin/cagebreak --prefix PATH : "${xwayland}/bin" wrapProgram $out/bin/cagebreak --prefix PATH : "${xwayland}/bin"
''; '';
passthru.tests.basic = nixosTests.cagebreak;
meta = with lib; { meta = with lib; {
description = "A Wayland tiling compositor inspired by ratpoison";
homepage = "https://github.com/project-repo/cagebreak"; homepage = "https://github.com/project-repo/cagebreak";
description = "A Wayland tiling compositor inspired by ratpoison";
license = licenses.mit; license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ berbiche ]; maintainers = with maintainers; [ berbiche ];
platforms = platforms.linux;
}; };
passthru.tests.basic = nixosTests.cagebreak;
} }