2018-03-16 11:40:17 +00:00
|
|
|
{ build-idris-package
|
|
|
|
, fetchFromGitHub
|
|
|
|
, effects
|
|
|
|
, lib
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2018-03-16 11:40:17 +00:00
|
|
|
, SDL2
|
|
|
|
, SDL2_gfx
|
|
|
|
}:
|
2019-07-27 22:37:52 +01:00
|
|
|
build-idris-package rec {
|
2022-02-14 22:08:24 +00:00
|
|
|
pname = "sdl2";
|
2019-07-27 22:37:52 +01:00
|
|
|
version = "0.1.1";
|
2018-03-16 11:40:17 +00:00
|
|
|
|
2018-07-02 04:18:21 +01:00
|
|
|
idrisDeps = [ effects ];
|
2018-03-16 11:40:17 +00:00
|
|
|
|
2021-05-08 12:28:59 +01:00
|
|
|
nativeBuildInputs = [
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2021-05-08 12:28:59 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
extraBuildInputs = [
|
2019-07-27 22:37:52 +01:00
|
|
|
SDL2
|
|
|
|
SDL2_gfx
|
|
|
|
];
|
|
|
|
|
|
|
|
prePatch = "patchShebangs .";
|
2018-03-16 11:40:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "steshaw";
|
|
|
|
repo = "idris-sdl2";
|
2019-07-27 22:37:52 +01:00
|
|
|
rev = version;
|
2021-05-08 12:28:59 +01:00
|
|
|
sha256 = "1jslnlzyw04dcvcd7xsdjqa7waxzkm5znddv76sv291jc94xhl4a";
|
2018-03-16 11:40:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "SDL2 binding for Idris";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/steshaw/idris-sdl2";
|
2019-07-27 22:37:52 +01:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
brainrape
|
|
|
|
steshaw
|
|
|
|
];
|
2018-03-16 11:40:17 +00:00
|
|
|
};
|
|
|
|
}
|