1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

egl-wayland: init at 1.1.4

This commit is contained in:
Tor Hedin Brønner 2019-04-23 03:29:41 +02:00 committed by worldofpeace
parent 1b53f78ef5
commit 9bd8e0de37
2 changed files with 75 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -11023,6 +11023,8 @@ in
inherit (darwin.apple_sdk.frameworks) Accelerate CoreGraphics CoreVideo;
};
egl-wayland = callPackage ../development/libraries/egl-wayland {};
elastix = callPackage ../development/libraries/science/biology/elastix { };
enchant1 = callPackage ../development/libraries/enchant/1.x.nix { };