-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #308379 from atorres1985-contrib/SDL
SDL: adoptions and refactors
- Loading branch information
Showing
38 changed files
with
949 additions
and
613 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 28 additions & 28 deletions
56
...pment/guile-modules/guile-sdl/default.nix → pkgs/by-name/gu/guile-sdl/package.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,60 @@ | ||
{ lib | ||
, stdenv | ||
, fetchurl | ||
, guile | ||
, lzip | ||
, pkg-config | ||
, SDL | ||
, SDL_image | ||
, SDL_mixer | ||
, SDL_ttf | ||
, buildEnv | ||
{ | ||
lib, | ||
SDL, | ||
SDL_image, | ||
SDL_mixer, | ||
SDL_ttf, | ||
buildEnv, | ||
fetchurl, | ||
guile, | ||
lzip, | ||
pkg-config, | ||
stdenv, | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "guile-sdl"; | ||
version = "0.6.1"; | ||
|
||
src = fetchurl { | ||
url = "mirror://gnu/${pname}/${pname}-${version}.tar.lz"; | ||
url = "mirror://gnu/guile-sdl/guile-sdl-${finalAttrs.version}.tar.lz"; | ||
hash = "sha256-/9sTTvntkRXck3FoRalROjqUQC8hkePtLTnHNZotKOE="; | ||
}; | ||
|
||
strictDeps = true; | ||
|
||
nativeBuildInputs = [ | ||
SDL | ||
guile | ||
lzip | ||
pkg-config | ||
SDL | ||
]; | ||
|
||
buildInputs = [ | ||
guile | ||
(lib.getDev SDL) | ||
SDL_image | ||
SDL_mixer | ||
SDL_ttf | ||
(lib.getDev SDL_image) | ||
(lib.getDev SDL_mixer) | ||
(lib.getDev SDL_ttf) | ||
guile | ||
]; | ||
|
||
makeFlags = | ||
let | ||
sdl-env = buildEnv { | ||
name = "sdl-env"; | ||
paths = buildInputs; | ||
paths = finalAttrs.buildInputs; | ||
}; | ||
in | ||
[ | ||
"SDLMINUSI=-I${sdl-env}/include/SDL" | ||
]; | ||
|
||
meta = with lib; { | ||
strictDeps = true; | ||
|
||
meta = { | ||
homepage = "https://www.gnu.org/software/guile-sdl/"; | ||
description = "Guile bindings for SDL"; | ||
license = licenses.gpl3Plus; | ||
maintainers = with maintainers; [ vyp ]; | ||
platforms = guile.meta.platforms; | ||
# configure: error: *** SDL version not found! | ||
broken = stdenv.isDarwin; | ||
license = lib.licenses.gpl3Plus; | ||
maintainers = lib.teams.sdl.members | ||
++ (with lib.maintainers; [ ]); | ||
inherit (guile.meta) platforms; | ||
}; | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
lib, | ||
SDL, | ||
SDL_image, | ||
SDL_mixer, | ||
SDL_ttf, | ||
fetchFromGitHub, | ||
freetype, | ||
libjpeg, | ||
libogg, | ||
libpng, | ||
libvorbis, | ||
pkg-config, | ||
smpeg, | ||
stdenv, | ||
}: | ||
|
||
|
||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "onscripter-en"; | ||
version = "20110930"; | ||
|
||
# The website is not available now. Let's use a Museoa backup | ||
src = fetchFromGitHub { | ||
owner = "museoa"; | ||
repo = "onscripter-en"; | ||
rev = finalAttrs.version; | ||
hash = "sha256-Lc5ZlH2C4ER02NmQ6icfiqpzVQdVUnOmdywGjjjSYSg="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
SDL | ||
pkg-config | ||
smpeg | ||
]; | ||
|
||
buildInputs = [ | ||
SDL | ||
SDL_image | ||
SDL_mixer | ||
SDL_ttf | ||
freetype | ||
libjpeg | ||
libogg | ||
libpng | ||
libvorbis | ||
smpeg | ||
]; | ||
|
||
configureFlags = [ "--no-werror" ]; | ||
|
||
strictDeps = true; | ||
|
||
preBuild = '' | ||
sed -i 's/.dll//g' Makefile | ||
''; | ||
|
||
meta = { | ||
homepage = "http://github.com/museoa/onscripter-en"; | ||
description = "Japanese visual novel scripting engine"; | ||
license = lib.licenses.gpl2Plus; | ||
mainProgram = "onscripter-en"; | ||
maintainers = with lib.maintainers; [ AndersonTorres ]; | ||
platforms = lib.platforms.unix; | ||
broken = stdenv.isDarwin; | ||
}; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,50 @@ | ||
{ lib | ||
, stdenv | ||
, fetchFromGitHub | ||
, autoreconfHook | ||
, pkg-config | ||
, freetype | ||
, pango | ||
, SDL2 | ||
, darwin | ||
{ | ||
lib, | ||
SDL2, | ||
autoreconfHook, | ||
darwin, | ||
fetchFromGitHub, | ||
freetype, | ||
pango, | ||
pkg-config, | ||
stdenv, | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "sdl2-pango"; | ||
version = "2.1.5"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "markuskimius"; | ||
repo = "SDL2_Pango"; | ||
rev = "v${version}"; | ||
rev = "v${finalAttrs.version}"; | ||
hash = "sha256-8SL5ylxi87TuKreC8m2kxlLr8rcmwYYvwkp4vQZ9dkc="; | ||
}; | ||
|
||
outputs = [ "out" "dev" ]; | ||
|
||
strictDeps = true; | ||
|
||
nativeBuildInputs = [ | ||
SDL2 | ||
autoreconfHook | ||
pkg-config | ||
SDL2 | ||
]; | ||
|
||
buildInputs = [ | ||
SDL2 | ||
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"; | ||
outputs = [ "out" "dev" ]; | ||
|
||
strictDeps = true; | ||
|
||
meta = { | ||
homepage = "https://github.com/markuskimius/SDL2_Pango"; | ||
license = licenses.lgpl21Plus; | ||
maintainers = with maintainers; [ rardiol ]; | ||
platforms = platforms.all; | ||
description = "A library for graphically rendering internationalized and tagged text in SDL2 using TrueType fonts"; | ||
license = lib.licenses.lgpl21Plus; | ||
maintainers = lib.teams.sdl.members | ||
++ (with lib.maintainers; [ rardiol ]); | ||
inherit (SDL2.meta) platforms; | ||
}; | ||
} | ||
}) |
Oops, something went wrong.