diff options
author | Tor Hedin Brønner <torhedinbronner@gmail.com> | 2019-04-23 03:29:41 +0200 |
---|---|---|
committer | worldofpeace <worldofpeace@protonmail.ch> | 2019-11-19 15:34:39 -0500 |
commit | 9bd8e0de3788f7c333641304b4d91e825e849003 (patch) | |
tree | f78ff0360a9f2272e7a6254ad7ca8c162e65b65d /pkgs/development/libraries/egl-wayland | |
parent | 1b53f78ef55600da9883e3ccbf06ea5bc3473587 (diff) |
egl-wayland: init at 1.1.4
Diffstat (limited to 'pkgs/development/libraries/egl-wayland')
-rw-r--r-- | pkgs/development/libraries/egl-wayland/default.nix | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/pkgs/development/libraries/egl-wayland/default.nix b/pkgs/development/libraries/egl-wayland/default.nix new file mode 100644 index 0000000000000..b8fcbfb1c7650 --- /dev/null +++ b/pkgs/development/libraries/egl-wayland/default.nix @@ -0,0 +1,73 @@ +{ lib +, stdenv +, fetchFromGitHub +, pkgconfig +, meson +, ninja +, libX11 +, mesa +, wayland +}: + +let + eglexternalplatform = stdenv.mkDerivation { + pname = "eglexternalplatform"; + version = "1.1"; + + src = fetchFromGitHub { + owner = "Nvidia"; + repo = "eglexternalplatform"; + rev = "7c8f8e2218e46b1a4aa9538520919747f1184d86"; + sha256 = "0lr5s2xa1zn220ghmbsiwgmx77l156wk54c7hybia0xpr9yr2nhb"; + }; + + installPhase = '' + mkdir -p "$out/include/" + cp interface/eglexternalplatform.h "$out/include/" + cp interface/eglexternalplatformversion.h "$out/include/" + + substituteInPlace eglexternalplatform.pc \ + --replace "/usr/include/EGL" "$out/include" + mkdir -p "$out/share/pkgconfig" + cp eglexternalplatform.pc "$out/share/pkgconfig/" + ''; + + meta = with lib; { + license = licenses.mit; + }; + }; + +in stdenv.mkDerivation rec { + pname = "egl-wayland"; + version = "1.1.4"; + + outputs = [ "out" "dev" ]; + + src = fetchFromGitHub { + owner = "Nvidia"; + repo = pname; + rev = version; + sha256 = "0wvamjcfycd7rgk7v14g2rin55xin9rfkxmivyay3cm08vnl7y1d"; + }; + + nativeBuildInputs = [ + meson + ninja + pkgconfig + ]; + + buildInputs = [ + eglexternalplatform + libX11 + mesa + wayland + ]; + + meta = with lib; { + description = "The EGLStream-based Wayland external platform"; + homepage = https://github.com/NVIDIA/egl-wayland/; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ hedning ]; + }; +} |