2020-04-02 03:17:58 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, pugixml, wayland, libGL, libffi, buildPackages }:
|
2019-03-26 19:23:35 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "waylandpp";
|
|
|
|
version = "0.2.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NilsBrause";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "16h57hzd688664qcyznzhjp3hxipdkzgv46x82yhkww24av8b55n";
|
|
|
|
};
|
|
|
|
|
2020-04-02 03:17:58 +01:00
|
|
|
cmakeFlags = stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "-DWAYLAND_SCANNERPP=${buildPackages.waylandpp}/bin/wayland-scanner++";
|
|
|
|
|
2019-03-26 19:23:35 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2020-04-02 03:17:58 +01:00
|
|
|
buildInputs = [ pugixml wayland libGL libffi ];
|
2019-03-26 19:23:35 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Wayland C++ binding";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/NilsBrause/waylandpp/";
|
2019-03-26 19:23:35 +00:00
|
|
|
license = with licenses; [ bsd2 hpnd ];
|
|
|
|
maintainers = with maintainers; [ minijackson ];
|
|
|
|
};
|
|
|
|
}
|