diff options
author | Ricardo Ardissone <ricardo.ardissone@gmail.com> | 2023-08-08 14:25:29 -0300 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-01-08 14:23:10 +0100 |
commit | 225b3bf66e04f10eb10576820f9408166e3ef65e (patch) | |
tree | 7e69de284215463562bb7b8e8231bb08eb1edb70 /pkgs/by-name/sd/SDL2_Pango | |
parent | 1186c9bdc4ee82dab2b517baa027c43b78604d95 (diff) |
SDL2_Pango: init at 2.1.5
Diffstat (limited to 'pkgs/by-name/sd/SDL2_Pango')
-rw-r--r-- | pkgs/by-name/sd/SDL2_Pango/package.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/by-name/sd/SDL2_Pango/package.nix b/pkgs/by-name/sd/SDL2_Pango/package.nix new file mode 100644 index 0000000000000..e81d392ca6d61 --- /dev/null +++ b/pkgs/by-name/sd/SDL2_Pango/package.nix @@ -0,0 +1,48 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, pkg-config +, freetype +, pango +, SDL2 +, darwin +}: + +stdenv.mkDerivation rec { + pname = "sdl2-pango"; + version = "2.1.5"; + + src = fetchFromGitHub { + owner = "markuskimius"; + repo = "SDL2_Pango"; + rev = "v${version}"; + hash = "sha256-8SL5ylxi87TuKreC8m2kxlLr8rcmwYYvwkp4vQZ9dkc="; + }; + + outputs = [ "out" "dev" ]; + + strictDeps = true; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + SDL2 + ]; + + buildInputs = [ + freetype + pango + SDL2 + ] ++ lib.optionals stdenv.isDarwin [ + darwin.libobjc + ]; + + meta = with lib; { + description = "A library for graphically rendering internationalized and tagged text in SDL2 using TrueType fonts"; + homepage = "https://github.com/markuskimius/SDL2_Pango"; + license = licenses.lgpl21Plus; + maintainers = with maintainers; [ rardiol ]; + platforms = platforms.all; + }; +} |