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 ];
nativeBuildInputs = [ pkgs.pkgconfig ];
extraBuildInputs = [ pkgs.glfw ];
postPatch = ''
substituteInPlace src/MakefileGlfw \
--replace glfw3 "glfw3 gl"
'';
src = fetchFromGitHub {
owner = "eckart";
repo = "glfw-idris";