2018-03-16 11:40:17 +00:00
|
|
|
{ build-idris-package
|
|
|
|
, fetchFromGitHub
|
|
|
|
, effects
|
|
|
|
, lib
|
|
|
|
, pkgconfig
|
|
|
|
, SDL2
|
|
|
|
, SDL2_gfx
|
|
|
|
}:
|
2019-07-27 21:37:52 +00:00
|
|
|
build-idris-package rec {
|
2018-03-16 11:40:17 +00:00
|
|
|
name = "sdl2";
|
2019-07-27 21:37:52 +00:00
|
|
|
version = "0.1.1";
|
2018-03-16 11:40:17 +00:00
|
|
|
|
2018-07-02 03:18:21 +00:00
|
|
|
idrisDeps = [ effects ];
|
2018-03-16 11:40:17 +00:00
|
|
|
|
2019-07-27 21:37:52 +00:00
|
|
|
extraBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
SDL2
|
|
|
|
SDL2_gfx
|
|
|
|
];
|
|
|
|
|
|
|
|
prePatch = "patchShebangs .";
|
2018-03-16 11:40:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "steshaw";
|
|
|
|
repo = "idris-sdl2";
|
2019-07-27 21:37:52 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = sha256:1jslnlzyw04dcvcd7xsdjqa7waxzkm5znddv76sv291jc94xhl4a;
|
2018-03-16 11:40:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "SDL2 binding for Idris";
|
|
|
|
homepage = https://github.com/steshaw/idris-sdl2;
|
2019-07-27 21:37:52 +00:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
brainrape
|
|
|
|
steshaw
|
|
|
|
];
|
2018-03-16 11:40:17 +00:00
|
|
|
};
|
|
|
|
}
|