idrisPackages.glfw: Fix runtime

In order to run programs, pkgconfig needs to be present so it can tell
it where to find glfw3 and gl.
This commit is contained in:
Silvan Mosberger 2019-03-26 04:09:24 +01:00
parent 7be93a4ca7
commit 321ec862de
No known key found for this signature in database
GPG Key ID: 9424360B4B85C9E7

View File

@ -10,8 +10,14 @@ build-idris-package {
idrisDeps = [ effects ]; idrisDeps = [ effects ];
nativeBuildInputs = [ pkgs.pkgconfig ];
extraBuildInputs = [ pkgs.glfw ]; extraBuildInputs = [ pkgs.glfw ];
postPatch = ''
substituteInPlace src/MakefileGlfw \
--replace glfw3 "glfw3 gl"
'';
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "eckart"; owner = "eckart";
repo = "glfw-idris"; repo = "glfw-idris";