3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/idris-modules/glfw.nix

35 lines
740 B
Nix
Raw Normal View History

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 04:18:21 +01:00
idrisDeps = [ effects ];
2018-03-16 11:40:17 +00:00
nativeBuildInputs = [ pkgs.pkg-config ];
2018-03-16 11:40:17 +00:00
extraBuildInputs = [ pkgs.glfw ];
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";
homepage = "https://github.com/eckart/glfw-idris";
2018-03-16 11:40:17 +00:00
license = lib.licenses.mit;
maintainers = [ lib.maintainers.brainrape ];
};
}