1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

cardboard: set meta.knownVulnerabilities

As reported by https://github.com/NixOS/nixpkgs/issues/90735
This commit is contained in:
Anderson Torres 2023-06-04 17:02:02 -03:00
parent 573b91a20d
commit 05ba2c2a01

View file

@ -57,11 +57,11 @@ let
in
stdenv.mkDerivation rec {
pname = "cardboard";
version = "0.pre+unstable=2021-05-10";
version = "unstable=2021-05-10";
src = fetchFromGitLab {
owner = "cardboardwm";
repo = pname;
repo = "cardboard";
rev = "b54758d85164fb19468f5ca52588ebea576cd027";
hash = "sha256-Kn5NyQSDyX7/nn2bKZPnsuepkoppi5XIkdu7IDy5r4w=";
};
@ -73,6 +73,7 @@ stdenv.mkDerivation rec {
pkg-config
unzip
];
buildInputs = [
ffmpeg
libGL
@ -93,12 +94,12 @@ stdenv.mkDerivation rec {
];
postPatch = ''
(cd subprojects
tar xvf ${cereal-wrap}
unzip ${cereal-wrapdb}
cp -r ${expected-wrap} ${expected-wrap.name}
cp -r ${wlroots-wrap} ${wlroots-wrap.name}
)
pushd subprojects
tar xvf ${cereal-wrap}
unzip ${cereal-wrapdb}
cp -r ${expected-wrap} ${expected-wrap.name}
cp -r ${wlroots-wrap} ${wlroots-wrap.name}
popd
sed '1i#include <functional>' -i cardboard/ViewAnimation.h # gcc12
'';
@ -112,11 +113,15 @@ stdenv.mkDerivation rec {
env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=array-bounds" ]; # gcc12
meta = with lib; {
meta = {
homepage = "https://gitlab.com/cardboardwm/cardboard";
description = "A scrollable, tiling Wayland compositor inspired on PaperWM";
license = licenses.gpl3Only;
maintainers = with maintainers; [ AndersonTorres ];
platforms = with platforms; unix;
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ AndersonTorres ];
inherit (wayland.meta) platforms;
knownVulnerabilities = [
"CVE-2020-11104 (inherited from cereal 1.3.0)"
"CVE-2020-11105 (inherited from cereal 1.3.0)"
];
};
}