2018-03-16 04:40:17 -07:00
|
|
|
{ build-idris-package
|
|
|
|
, fetchFromGitHub
|
|
|
|
, effects
|
|
|
|
, lib
|
|
|
|
, pkgconfig
|
|
|
|
, SDL2
|
|
|
|
, SDL2_gfx
|
|
|
|
}:
|
2019-07-27 14:37:52 -07:00
|
|
|
build-idris-package rec {
|
2018-03-16 04:40:17 -07:00
|
|
|
name = "sdl2";
|
2019-07-27 14:37:52 -07:00
|
|
|
version = "0.1.1";
|
2018-03-16 04:40:17 -07:00
|
|
|
|
2018-07-01 20:18:21 -07:00
|
|
|
idrisDeps = [ effects ];
|
2018-03-16 04:40:17 -07:00
|
|
|
|
2019-07-27 14:37:52 -07:00
|
|
|
extraBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
SDL2
|
|
|
|
SDL2_gfx
|
|
|
|
];
|
|
|
|
|
|
|
|
prePatch = "patchShebangs .";
|
2018-03-16 04:40:17 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "steshaw";
|
|
|
|
repo = "idris-sdl2";
|
2019-07-27 14:37:52 -07:00
|
|
|
rev = version;
|
2020-06-01 01:59:41 -07:00
|
|
|
sha256 = "0hqhg7l6wpkdbzrdjvrbqymmahziri07ba0hvbii7dd2p0h248fv";
|
2018-03-16 04:40:17 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "SDL2 binding for Idris";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/steshaw/idris-sdl2";
|
2019-07-27 14:37:52 -07:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
brainrape
|
|
|
|
steshaw
|
|
|
|
];
|
2018-03-16 04:40:17 -07:00
|
|
|
};
|
|
|
|
}
|