3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/waylandpp/default.nix

26 lines
811 B
Nix
Raw Normal View History

{ 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";
};
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 ];
buildInputs = [ pugixml wayland libGL libffi ];
2019-03-26 19:23:35 +00:00
meta = with stdenv.lib; {
description = "Wayland C++ binding";
homepage = "https://github.com/NilsBrause/waylandpp/";
2019-03-26 19:23:35 +00:00
license = with licenses; [ bsd2 hpnd ];
maintainers = with maintainers; [ minijackson ];
};
}