17 lines
441 B
Nix
17 lines
441 B
Nix
{ lib, buildNimPackage, fetchNimble, SDL2 }:
|
|
|
|
buildNimPackage rec {
|
|
pname = "sdl2";
|
|
version = "2.0.4";
|
|
src = fetchNimble {
|
|
inherit pname version;
|
|
hash = "sha256-Vtcj8goI4zZPQs2TbFoBFlcR5UqDtOldaXSH/+/xULk=";
|
|
};
|
|
propagatedBuildInputs = [ SDL2 ];
|
|
doCheck = true;
|
|
meta = {
|
|
description = "Nim wrapper for SDL 2.x";
|
|
platforms = lib.platforms.linux; # Problems with Darwin.
|
|
license = [ lib.licenses.mit ];
|
|
};
|
|
}
|