depot/third_party/nixpkgs/pkgs/development/idris-modules/glfw.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

34 lines
739 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 ];
};
}