nixpkgs/pkgs/development/idris-modules/glfw.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
741 B
Nix
Raw Normal View History

2018-03-16 11:40:17 +00:00
{ build-idris-package
, fetchFromGitHub
, effects
, lib
, pkgs
}:
build-idris-package {
2022-02-14 22:08:24 +00:00
pname = "glfw";
2018-03-16 11:40:17 +00:00
version = "2016-12-05";
2018-07-02 03:18:21 +00: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 ];
};
}