2
0
Fork 0
Genode Packages collection https://git.sr.ht/~ehmry/genodepkgs/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

27 lines
714 B

{ preparePort, nixpkgs, upstream }:
let
inherit (nixpkgs) fetchFromGitHub fetchgit;
upstreamSrc = import ./../../upstream/src.nix { inherit fetchgit; };
in
preparePort {
name = "egl";
outputs = [ "dev" ];
src = fetchFromGitHub {
name = "EGL";
owner = "KhronosGroup";
repo = "EGL-Registry";
rev = "d738c39fe25bab9f65bed2cb78c4db253bd473c4";
sha256 = "1bb2pgv516i1p8x3171yj3gqkxqxqwg7q42ak627md4x3irmqf2q";
};
installPhase = ''
mkdir -p $includedir $pkgconfigdir
substituteAll ${./egl_api.pc.in} $pkgconfigdir/egl_api.pc
cp -r api/1.? api/EGL api/KHR $includedir
cp ${upstream.src}/repos/libports/include/EGL/eglplatform.h $includedir/EGL/eglplatform.h
'';
}