mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-16 09:54:52 +00:00
32 lines
901 B
Nix
32 lines
901 B
Nix
{ stdenv, fetchFromGitHub, cmake, pkgconfig, pugixml, wayland, libGL
|
|
, docSupport ? true, doxygen ? null }:
|
|
|
|
assert docSupport -> doxygen != null;
|
|
|
|
with stdenv.lib;
|
|
stdenv.mkDerivation rec {
|
|
pname = "waylandpp";
|
|
version = "0.2.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "NilsBrause";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1r4m0xhvwpcqxrqvp3hz1bzlkxqj2jiymd5r6hj8xjzz536hyprz";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ] ++ optional docSupport doxygen;
|
|
buildInputs = [ pugixml wayland libGL ];
|
|
|
|
outputs = [ "bin" "dev" "lib" "out" ] ++ optionals docSupport [ "doc" "devman" ];
|
|
|
|
cmakeFlags = [ "-DCMAKE_INSTALL_DATADIR=${placeholder "dev"}" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Wayland C++ binding";
|
|
homepage = https://github.com/NilsBrause/waylandpp/;
|
|
license = with licenses; [ bsd2 hpnd ];
|
|
maintainers = with maintainers; [ minijackson ];
|
|
};
|
|
}
|