2018-03-16 11:40:17 +00:00
|
|
|
{ build-idris-package
|
|
|
|
, fetchFromGitHub
|
|
|
|
, effects
|
|
|
|
, lib
|
|
|
|
, pkgs
|
|
|
|
}:
|
|
|
|
build-idris-package {
|
|
|
|
name = "glfw";
|
|
|
|
version = "2016-12-05";
|
|
|
|
|
2018-07-02 03:18:21 +00:00
|
|
|
idrisDeps = [ effects ];
|
2018-03-16 11:40:17 +00:00
|
|
|
|
2019-03-26 03:09:24 +00:00
|
|
|
nativeBuildInputs = [ pkgs.pkgconfig ];
|
2018-03-16 11:40:17 +00:00
|
|
|
extraBuildInputs = [ pkgs.glfw ];
|
|
|
|
|
2019-03-26 03:09:24 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/MakefileGlfw \
|
|
|
|
--replace glfw3 "glfw3 gl"
|
|
|
|
'';
|
|
|
|
|
2018-03-16 11:40:17 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eckart";
|
|
|
|
repo = "glfw-idris";
|
|
|
|
rev = "10220a734b69f3b884683041a1a9c533800b663a";
|
|
|
|
sha256 = "045ylaj66g5m4syzhqxlaxmivy8y7jznkcf1y7w4awa4y5znyqqd";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "GLFW bindings for Idris";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/eckart/glfw-idris";
|
2018-03-16 11:40:17 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.brainrape ];
|
|
|
|
};
|
|
|
|
}
|