1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/development/idris-modules/glfw.nix
Silvan Mosberger 321ec862de
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.
2019-03-26 04:09:24 +01:00

35 lines
737 B
Nix

{ build-idris-package
, fetchFromGitHub
, effects
, lib
, pkgs
}:
build-idris-package {
name = "glfw";
version = "2016-12-05";
idrisDeps = [ effects ];
nativeBuildInputs = [ pkgs.pkgconfig ];
extraBuildInputs = [ pkgs.glfw ];
postPatch = ''
substituteInPlace src/MakefileGlfw \
--replace glfw3 "glfw3 gl"
'';
src = fetchFromGitHub {
owner = "eckart";
repo = "glfw-idris";
rev = "10220a734b69f3b884683041a1a9c533800b663a";
sha256 = "045ylaj66g5m4syzhqxlaxmivy8y7jznkcf1y7w4awa4y5znyqqd";
};
meta = {
description = "GLFW bindings for Idris";
homepage = https://github.com/eckart/glfw-idris;
license = lib.licenses.mit;
maintainers = [ lib.maintainers.brainrape ];
};
}