diff options
author | Domen Kožar <domen@dev.si> | 2020-04-22 13:12:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-22 13:12:06 +0200 |
commit | ace7b9313181c4fc57fecd58880e467411355276 (patch) | |
tree | 4bda3de731820e1daa85648942796e2a15386126 /pkgs/development/libraries/waylandpp | |
parent | 784aa2913ae8678fd26c8241db1d53e0e20ea13c (diff) | |
parent | 34999b030cd7933b0ba1a3904be4370b68a42cf3 (diff) |
Merge pull request #72420 from minijackson/waylandpp-0.2.7
waylandpp: 0.2.5 -> 0.2.7, make it split-output package
Diffstat (limited to 'pkgs/development/libraries/waylandpp')
-rw-r--r-- | pkgs/development/libraries/waylandpp/default.nix | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/development/libraries/waylandpp/default.nix b/pkgs/development/libraries/waylandpp/default.nix index 06faec558c019..824df552a1ac6 100644 --- a/pkgs/development/libraries/waylandpp/default.nix +++ b/pkgs/development/libraries/waylandpp/default.nix @@ -1,19 +1,27 @@ -{ stdenv, fetchFromGitHub, cmake, pkgconfig, pugixml, wayland, libGL }: +{ 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.5"; + version = "0.2.7"; src = fetchFromGitHub { owner = "NilsBrause"; repo = pname; rev = version; - sha256 = "16h57hzd688664qcyznzhjp3hxipdkzgv46x82yhkww24av8b55n"; + sha256 = "1r4m0xhvwpcqxrqvp3hz1bzlkxqj2jiymd5r6hj8xjzz536hyprz"; }; - nativeBuildInputs = [ cmake pkgconfig ]; + 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/"; |