diff --git a/pkgs/development/nim-packages/sdl2/default.nix b/pkgs/development/nim-packages/sdl2/default.nix index 340cd2718ae2..09e274ad0072 100644 --- a/pkgs/development/nim-packages/sdl2/default.nix +++ b/pkgs/development/nim-packages/sdl2/default.nix @@ -1,16 +1,20 @@ -{ lib, buildNimPackage, fetchNimble, SDL2 }: +{ lib, buildNimPackage, fetchFromGitHub, SDL2 }: -buildNimPackage (finalAttrs: { +buildNimPackage (final: prev: { pname = "sdl2"; - version = "2.0.4"; - src = fetchNimble { - inherit (finalAttrs) pname version; - hash = "sha256-Vtcj8goI4zZPQs2TbFoBFlcR5UqDtOldaXSH/+/xULk="; + version = "2.0.5"; + src = fetchFromGitHub { + owner = "nim-lang"; + repo = "sdl2"; + rev = "v${final.version}"; + hash = "sha256-oUTUWuBphoR0pBMkcJBVDW+dnnF8KK23F7eW3lOLNO4="; }; propagatedBuildInputs = [ SDL2 ]; - meta = { + meta = final.src.meta // { description = "Nim wrapper for SDL 2.x"; - platforms = lib.platforms.linux; # Problems with Darwin. + homepage = "https://github.com/nim-lang/sdl2"; license = [ lib.licenses.mit ]; + maintainers = with lib.maintainers; [ ehmry ]; + badPlatforms = lib.platforms.darwin; }; })