pkgs/games: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob 2021-01-15 11:31:39 +07:00
parent 93e5d99592
commit 2e34288f0d
159 changed files with 457 additions and 465 deletions

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
makeFlags = [ "PREFIX=$(out)" "DESTDIR=" ]; makeFlags = [ "PREFIX=$(out)" "DESTDIR=" ];
preBuild = stdenv.lib.optionalString stdenv.cc.isClang preBuild = lib.optionalString stdenv.cc.isClang
'' ''
substituteInPlace Makefile \ substituteInPlace Makefile \
--replace -fpredictive-commoning "" --replace -fpredictive-commoning ""

View file

@ -5,7 +5,7 @@ let
inherit (xorg) libXext libX11; inherit (xorg) libXext libX11;
lpath = "${stdenv.cc.cc.lib}/lib64:" + stdenv.lib.makeLibraryPath [ lpath = "${stdenv.cc.cc.lib}/lib64:" + lib.makeLibraryPath [
zlib libmad libpng12 libcaca libXext libX11 libGLU libGL alsaLib libpulseaudio]; zlib libmad libpng12 libcaca libXext libX11 libGLU libGL alsaLib libpulseaudio];
in in

View file

@ -93,7 +93,7 @@ in self // {
''; '';
meta = alephone.meta // { meta = alephone.meta // {
license = stdenv.lib.licenses.free; license = lib.licenses.free;
hydraPlatforms = [ ]; hydraPlatforms = [ ];
} // meta; } // meta;
}); });

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, libvorbis, libogg, libtheora, SDL, libXft, SDL_image, zlib, libX11, libpng, openal, runtimeShell, requireFile, commercialVersion ? false }: { lib, stdenv, fetchurl, libvorbis, libogg, libtheora, SDL, libXft, SDL_image, zlib, libX11, libpng, openal, runtimeShell, requireFile, commercialVersion ? false }:
let plainName = "andyetitmoves"; let plainName = "andyetitmoves";
version = "1.2.2"; version = "1.2.2";
@ -68,8 +68,8 @@ stdenv.mkDerivation {
homepage = "http://www.andyetitmoves.net/"; homepage = "http://www.andyetitmoves.net/";
license = stdenv.lib.licenses.unfree; license = lib.licenses.unfree;
maintainers = with stdenv.lib.maintainers; [bluescreen303]; maintainers = with lib.maintainers; [bluescreen303];
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, gtk2-x11, glib, pango, cairo, atk, gdk-pixbuf, libX11 }: { lib, stdenv, fetchurl, gtk2-x11, glib, pango, cairo, atk, gdk-pixbuf, libX11 }:
# Arena is free software in the sense of "free beer" but not as in "free # Arena is free software in the sense of "free beer" but not as in "free
# speech". We can install it as we please, but we cannot re-distribute it in # speech". We can install it as we please, but we cannot re-distribute it in
@ -7,7 +7,7 @@
let let
inherit (stdenv.lib) makeLibraryPath; inherit (lib) makeLibraryPath;
libDir = "lib64"; libDir = "lib64";
in in
@ -66,9 +66,9 @@ stdenv.mkDerivation rec {
UCI protocol I, II. Furthermore, compatible to Chess960, DGT electronic UCI protocol I, II. Furthermore, compatible to Chess960, DGT electronic
chess board & DGT clocks and much more. chess board & DGT clocks and much more.
''; '';
license = stdenv.lib.licenses.unfree; license = lib.licenses.unfree;
platforms = ["x86_64-linux"]; platforms = ["x86_64-linux"];
hydraPlatforms = stdenv.lib.platforms.none; hydraPlatforms = lib.platforms.none;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, zlib, boost { lib, stdenv, fetchFromGitHub, cmake, zlib, boost
, openal, glm, freetype, libGLU, SDL2, epoxy , openal, glm, freetype, libGLU, SDL2, epoxy
, dejavu_fonts, inkscape, optipng, imagemagick , dejavu_fonts, inkscape, optipng, imagemagick
, withCrashReporter ? !stdenv.isDarwin , withCrashReporter ? !stdenv.isDarwin
@ -8,7 +8,7 @@
, gdb ? null , gdb ? null
}: }:
with stdenv.lib; with lib;
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "arx-libertatis"; pname = "arx-libertatis";

View file

@ -1,8 +1,8 @@
{ fetchFromGitHub, stdenv, makeDesktopItem, openal, pkgconfig, libogg, { fetchFromGitHub, lib, stdenv, makeDesktopItem, openal, pkgconfig, libogg,
libvorbis, SDL, SDL_image, makeWrapper, zlib, file, libvorbis, SDL, SDL_image, makeWrapper, zlib, file,
client ? true, server ? true }: client ? true, server ? true }:
with stdenv.lib; with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -67,6 +67,6 @@ stdenv.mkDerivation rec {
homepage = "https://assault.cubers.net"; homepage = "https://assault.cubers.net";
maintainers = [ ]; maintainers = [ ];
platforms = platforms.linux; # should work on darwin with a little effort. platforms = platforms.linux; # should work on darwin with a little effort.
license = stdenv.lib.licenses.zlib; license = lib.licenses.zlib;
}; };
} }

View file

@ -1,4 +1,4 @@
{ fetchurl, stdenv, cmake, xlibsWrapper, libGLU, libGL, SDL, openal, freealut, libogg, libvorbis, runtimeShell }: { fetchurl, lib, stdenv, cmake, xlibsWrapper, libGLU, libGL, SDL, openal, freealut, libogg, libvorbis, runtimeShell }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "1.3.2"; version = "1.3.2";
@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Hardcore 3D space shooter with spaceship upgrade possibilities"; description = "Hardcore 3D space shooter with spaceship upgrade possibilities";
homepage = "https://www.viewizard.com/"; homepage = "https://www.viewizard.com/";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, SDL, which, installTool ? false }: { lib, stdenv, fetchFromGitHub, SDL, which, installTool ? false }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "azimuth"; pname = "azimuth";
@ -41,10 +41,10 @@ stdenv.mkDerivation rec {
bosses to tangle with. bosses to tangle with.
''; '';
license = stdenv.lib.licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
homepage = "https://mdsteele.games/azimuth/index.html"; homepage = "https://mdsteele.games/azimuth/index.html";
maintainers = with stdenv.lib.maintainers; [ marius851000 ]; maintainers = with lib.maintainers; [ marius851000 ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ fetchurl, stdenv, SDL, SDL_image, SDL_mixer, SDL_ttf, guile, gettext }: { fetchurl, lib, stdenv, SDL, SDL_image, SDL_mixer, SDL_ttf, guile, gettext }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "ballandpaddle-0.8.1"; name = "ballandpaddle-0.8.1";
@ -31,14 +31,14 @@ stdenv.mkDerivation rec {
with Guile. Follow the example level sets and the documentation. with Guile. Follow the example level sets and the documentation.
''; '';
license = stdenv.lib.licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
homepage = "https://www.gnu.org/software/ballandpaddle/"; homepage = "https://www.gnu.org/software/ballandpaddle/";
maintainers = [ ]; maintainers = [ ];
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
hydraPlatforms = stdenv.lib.platforms.linux; # sdl-config times out on darwin hydraPlatforms = lib.platforms.linux; # sdl-config times out on darwin
}; };
} }

View file

@ -6,8 +6,8 @@ stdenv.mkDerivation {
buildInputs = [ SDL SDL_image SDL_ttf SDL_mixer ]; buildInputs = [ SDL SDL_image SDL_ttf SDL_mixer ];
NIX_CFLAGS_COMPILE = "-I${SDL.dev}/include/SDL"; NIX_CFLAGS_COMPILE = "-I${SDL.dev}/include/SDL";
NIX_CFLAGS_LINK = stdenv.lib.optionalString (!stdenv.isDarwin) "-lgcc_s"; NIX_CFLAGS_LINK = lib.optionalString (!stdenv.isDarwin) "-lgcc_s";
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin NIX_LDFLAGS = lib.optionalString stdenv.isDarwin
"-framework CoreFoundation -framework OpenGL -framework Cocoa"; "-framework CoreFoundation -framework OpenGL -framework Cocoa";
patches = [ ./use-home-dir.patch ]; patches = [ ./use-home-dir.patch ];

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, SDL, lua, libGLU, libGL }: { lib, stdenv, fetchurl, SDL, lua, libGLU, libGL }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "bitsnbots-20111230"; name = "bitsnbots-20111230";
@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Simple puzzle game with moving robots"; description = "Simple puzzle game with moving robots";
homepage = "http://moikmellah.org/blog/?page_id=19"; homepage = "http://moikmellah.org/blog/?page_id=19";
license = stdenv.lib.licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
platforms = with stdenv.lib.platforms; linux; platforms = with lib.platforms; linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{stdenv, fetchsvn, SDL, libGLU, libGL, openal, libvorbis, freealut, SDL_image}: {lib, stdenv, fetchsvn, SDL, libGLU, libGL, openal, libvorbis, freealut, SDL_image}:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "blackshades-svn-110"; name = "blackshades-svn-110";
@ -27,8 +27,8 @@ stdenv.mkDerivation {
meta = { meta = {
homepage = "http://icculus.org/blackshades/"; homepage = "http://icculus.org/blackshades/";
description = "Protect the VIP"; description = "Protect the VIP";
license = stdenv.lib.licenses.free; license = lib.licenses.free;
maintainers = with stdenv.lib.maintainers; [viric]; maintainers = with lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux; platforms = with lib.platforms; linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, SDL2, SDL2_image, libGLU, libGL, cmake, physfs, boost, zip, zlib, pkg-config }: { lib, stdenv, fetchurl, SDL2, SDL2_image, libGLU, libGL, cmake, physfs, boost, zip, zlib, pkg-config }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "blobby-volley"; pname = "blobby-volley";
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
chmod a+x "$out/bin/blobby" chmod a+x "$out/bin/blobby"
''; '';
meta = with stdenv.lib; { meta = with lib; {
description = ''A blobby volleyball game''; description = ''A blobby volleyball game'';
license = licenses.bsd3; license = licenses.bsd3;
platforms = platforms.linux; platforms = platforms.linux;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ncurses, openssl, flex, bison, less, miscfiles }: { lib, stdenv, fetchurl, ncurses, openssl, flex, bison, less, miscfiles }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "bsd-games-2.17"; name = "bsd-games-2.17";
@ -60,8 +60,8 @@ stdenv.mkDerivation {
meta = { meta = {
homepage = "http://www.t2-project.org/packages/bsd-games.html"; homepage = "http://www.t2-project.org/packages/bsd-games.html";
description = "Ports of all the games from NetBSD-current that are free"; description = "Ports of all the games from NetBSD-current that are free";
license = stdenv.lib.licenses.free; license = lib.licenses.free;
maintainers = with stdenv.lib.maintainers; [viric]; maintainers = with lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux; platforms = with lib.platforms; linux;
}; };
} }

View file

@ -5,7 +5,7 @@
}: }:
let let
inherit (stdenv.lib) optionals optionalString; inherit (lib) optionals optionalString;
cursesDeps = [ gettext ncurses ] cursesDeps = [ gettext ncurses ]
++ optionals stdenv.isDarwin [ CoreFoundation ]; ++ optionals stdenv.isDarwin [ CoreFoundation ];

View file

@ -1,8 +1,8 @@
{ stdenv, fetchurl, tcl, tk, libX11, makeWrapper }: { lib, stdenv, fetchurl, tcl, tk, libX11, makeWrapper }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "chessdb-3.6.19-beta-1"; name = "chessdb-3.6.19-beta-1";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/chessdb/ChessDB-3.6.19-beta-1.tar.gz"; url = "mirror://sourceforge/chessdb/ChessDB-3.6.19-beta-1.tar.gz";
sha256 = "0brc3wln3bxp979iqj2w1zxpfd0pch8zzazhdmwf7acww4hrsz62"; sha256 = "0brc3wln3bxp979iqj2w1zxpfd0pch8zzazhdmwf7acww4hrsz62";
@ -25,6 +25,6 @@ stdenv.mkDerivation {
meta = { meta = {
homepage = "http://chessdb.sourceforge.net/"; homepage = "http://chessdb.sourceforge.net/";
description = "A free chess database"; description = "A free chess database";
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -43,10 +43,10 @@ mkDerivation rec {
qtsvg qtsvg
protobuf protobuf
SDL2 SDL2
] ++ stdenv.lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.isLinux [
libevdev libevdev
udev udev
] ++ stdenv.lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
qtmacextras qtmacextras
]; ];

View file

@ -1,4 +1,4 @@
{ stdenv, autoreconfHook, pkgconfig, SDL2, SDL2_mixer, SDL2_net, fetchFromGitHub }: { lib, stdenv, autoreconfHook, pkgconfig, SDL2, SDL2_mixer, SDL2_net, fetchFromGitHub }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "chocolate-doom"; pname = "chocolate-doom";
@ -22,9 +22,9 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = "http://chocolate-doom.org/"; homepage = "http://chocolate-doom.org/";
description = "A Doom source port that accurately reproduces the experience of Doom as it was played in the 1990s"; description = "A Doom source port that accurately reproduces the experience of Doom as it was played in the 1990s";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
hydraPlatforms = stdenv.lib.platforms.linux; # darwin times out hydraPlatforms = lib.platforms.linux; # darwin times out
maintainers = with stdenv.lib.maintainers; [ MP2E ]; maintainers = with lib.maintainers; [ MP2E ];
}; };
} }

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
buildInputs = [ makeWrapper mono ]; buildInputs = [ makeWrapper mono ];
libraries = stdenv.lib.makeLibraryPath [ gtk2 curl ]; libraries = lib.makeLibraryPath [ gtk2 curl ];
buildPhase = "true"; buildPhase = "true";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, mkDerivation, cmake, protobuf { lib, stdenv, fetchFromGitHub, mkDerivation, cmake, protobuf
, qtbase, qtmultimedia, qttools, qtwebsockets, wrapQtAppsHook , qtbase, qtmultimedia, qttools, qtwebsockets, wrapQtAppsHook
}: }:
@ -22,8 +22,8 @@ mkDerivation rec {
meta = { meta = {
homepage = "https://github.com/Cockatrice/Cockatrice"; homepage = "https://github.com/Cockatrice/Cockatrice";
description = "A cross-platform virtual tabletop for multiplayer card games"; description = "A cross-platform virtual tabletop for multiplayer card games";
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
maintainers = with stdenv.lib.maintainers; [ evanjs ]; maintainers = with lib.maintainers; [ evanjs ];
platforms = with stdenv.lib.platforms; linux; platforms = with lib.platforms; linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchurl , fetchurl
, libX11 , libX11
, zlib , zlib
@ -18,9 +18,9 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ libX11 zlib xorgproto ] buildInputs = [ libX11 zlib xorgproto ]
++ stdenv.lib.optional (libGL != null) libGL ++ lib.optional (libGL != null) libGL
++ stdenv.lib.optional (libGLU != null) libGLU ++ lib.optional (libGLU != null) libGLU
++ stdenv.lib.optional (freeglut != null) freeglut; ++ lib.optional (freeglut != null) freeglut;
preConfigure = '' preConfigure = ''
substituteInPlace src/Makefile.in \ substituteInPlace src/Makefile.in \
@ -30,6 +30,6 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Masses and springs simulation game"; description = "Masses and springs simulation game";
homepage = "http://fs.fsf.org/construo/"; homepage = "http://fs.fsf.org/construo/";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, gtk2, freeglut, SDL, SDL_mixer, libGLU, libGL, libXi, libXmu }: { lib, stdenv, fetchurl, pkgconfig, gtk2, freeglut, SDL, SDL_mixer, libGLU, libGL, libXi, libXmu }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "crack-attack-1.1.14"; name = "crack-attack-1.1.14";
@ -28,8 +28,8 @@ stdenv.mkDerivation {
meta = { meta = {
description = "A fast-paced puzzle game inspired by the classic Super NES title Tetris Attack!"; description = "A fast-paced puzzle game inspired by the classic Super NES title Tetris Attack!";
homepage = "https://www.nongnu.org/crack-attack/"; homepage = "https://www.nongnu.org/crack-attack/";
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.piotr ]; maintainers = [ lib.maintainers.piotr ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, unzip }: { lib, stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "crafty"; pname = "crafty";
@ -66,8 +66,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = "http://www.craftychess.com/"; homepage = "http://www.craftychess.com/";
description = "Chess program developed by Dr. Robert M. Hyatt"; description = "Chess program developed by Dr. Robert M. Hyatt";
license = stdenv.lib.licenses.unfree; license = lib.licenses.unfree;
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.jwiegley ]; maintainers = [ lib.maintainers.jwiegley ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, autoreconfHook, pkgconfig, SDL2, SDL2_mixer, SDL2_net, fetchFromGitHub, python }: { lib, stdenv, autoreconfHook, pkgconfig, SDL2, SDL2_mixer, SDL2_net, fetchFromGitHub, python }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "crispy-doom"; pname = "crispy-doom";
@ -27,8 +27,8 @@ stdenv.mkDerivation rec {
Crispy Doom is a limit-removing enhanced-resolution Doom source port based on Chocolate Doom. Crispy Doom is a limit-removing enhanced-resolution Doom source port based on Chocolate Doom.
Its name means that 640x400 looks \"crisp\" and is also a slight reference to its origin. Its name means that 640x400 looks \"crisp\" and is also a slight reference to its origin.
''; '';
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ neonfuz ]; maintainers = with lib.maintainers; [ neonfuz ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, libGLU, libGL, SDL, SDL_mixer, plib, libjpeg }: { lib, stdenv, fetchurl, libGLU, libGL, SDL, SDL_mixer, plib, libjpeg }:
let let
version = "0.9.13"; version = "0.9.13";
in in
@ -21,8 +21,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "A model-airplane flight simulator"; description = "A model-airplane flight simulator";
maintainers = with stdenv.lib.maintainers; [ raskin ]; maintainers = with lib.maintainers; [ raskin ];
platforms = [ "i686-linux" "x86_64-linux" ]; platforms = [ "i686-linux" "x86_64-linux" ];
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
}; };
} }

View file

@ -13,7 +13,7 @@ mkDerivation rec {
buildInputs = [ qtsvg ]; buildInputs = [ qtsvg ];
postInstall = stdenv.lib.optionalString stdenv.isDarwin '' postInstall = lib.optionalString stdenv.isDarwin ''
mkdir -p $out/Applications mkdir -p $out/Applications
mv CuteMaze.app $out/Applications mv CuteMaze.app $out/Applications
''; '';

View file

@ -1,21 +1,21 @@
{ stdenv, fetchurl, SDL, SDL_mixer, zlib }: { lib, stdenv, fetchurl, SDL, SDL_mixer, zlib }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "cuyo"; pname = "cuyo";
version = "2.1.0"; version = "2.1.0";
src = fetchurl { src = fetchurl {
url = "https://download.savannah.gnu.org/releases/cuyo/cuyo-2.1.0.tar.gz"; url = "https://download.savannah.gnu.org/releases/cuyo/cuyo-2.1.0.tar.gz";
sha256 = "17yqv924x7yvwix7yz9jdhgyar8lzdhqvmpvv0any8rdkajhj23c"; sha256 = "17yqv924x7yvwix7yz9jdhgyar8lzdhqvmpvv0any8rdkajhj23c";
}; };
buildInputs = [ SDL SDL_mixer zlib ]; buildInputs = [ SDL SDL_mixer zlib ];
meta = { meta = {
homepage = "http://karimmi.de/cuyo"; homepage = "http://karimmi.de/cuyo";
description = "Stacking blocks game, with different rules for each level"; description = "Stacking blocks game, with different rules for each level";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
homepage = "https://github.com/dhewm/dhewm3"; homepage = "https://github.com/dhewm/dhewm3";
description = "Doom 3 port to SDL"; description = "Doom 3 port to SDL";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
maintainers = with maintainers; [ MP2E ]; maintainers = with maintainers; [ MP2E ];
platforms = with platforms; linux; platforms = with platforms; linux;
}; };

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchsvn , fetchsvn
# jdk8 is needed for building, but the game runs on newer jres as well # jdk8 is needed for building, but the game runs on newer jres as well
, jdk8 , jdk8
@ -76,7 +76,7 @@ in stdenv.mkDerivation {
install -Dm644 build/game/resources/icon.png $out/share/pixmaps/domination.png install -Dm644 build/game/resources/icon.png $out/share/pixmaps/domination.png
''; '';
meta = with stdenv.lib; { meta = with lib; {
homepage = "http://domination.sourceforge.net/"; homepage = "http://domination.sourceforge.net/";
downloadPage = "http://domination.sourceforge.net/download.shtml"; downloadPage = "http://domination.sourceforge.net/download.shtml";
description = "A game that is a bit like the board game Risk or RisiKo"; description = "A game that is a bit like the board game Risk or RisiKo";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, perl, pkgconfig, gtk2 }: { lib, stdenv, fetchurl, perl, pkgconfig, gtk2 }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "eboard-1.1.1"; name = "eboard-1.1.1";
@ -25,6 +25,6 @@ stdenv.mkDerivation {
meta = { meta = {
homepage = "http://www.bergo.eng.br/eboard/"; homepage = "http://www.bergo.eng.br/eboard/";
description = "Chess interface for Unix-like systems"; description = "Chess interface for Unix-like systems";
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -30,7 +30,7 @@ in stdenv.mkDerivation {
buildInputs = [ alsaLib flac gtk2 libvorbis libvpx libGL libGLU SDL2 SDL2_mixer ]; buildInputs = [ alsaLib flac gtk2 libvorbis libvpx libGL libGLU SDL2 SDL2_mixer ];
nativeBuildInputs = [ makeWrapper pkgconfig ] nativeBuildInputs = [ makeWrapper pkgconfig ]
++ stdenv.lib.optional (stdenv.hostPlatform.system == "i686-linux") nasm; ++ lib.optional (stdenv.hostPlatform.system == "i686-linux") nasm;
postPatch = '' postPatch = ''
substituteInPlace source/build/src/glbuild.cpp \ substituteInPlace source/build/src/glbuild.cpp \

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, libGLU, libGL, SDL, SDL_mixer, SDL_image, SDL_ttf }: { lib, stdenv, fetchurl, libGLU, libGL, SDL, SDL_mixer, SDL_image, SDL_ttf }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
# pf5234 (a developer?) at freenode #egoboo told me that I better use 2.7.3 until # pf5234 (a developer?) at freenode #egoboo told me that I better use 2.7.3 until
@ -50,10 +50,10 @@ stdenv.mkDerivation rec {
description = "3D dungeon crawling adventure"; description = "3D dungeon crawling adventure";
homepage = "http://www.freedink.org/"; homepage = "http://www.freedink.org/";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
# I take it out of hydra as it does not work as well as I'd like # I take it out of hydra as it does not work as well as I'd like
# maintainers = [ stdenv.lib.maintainers.bjg ]; # maintainers = [ lib.maintainers.bjg ];
# platforms = stdenv.lib.platforms.all; # platforms = lib.platforms.all;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchurl , fetchurl
, fetchFromGitHub , fetchFromGitHub
, unzip , unzip
@ -17,7 +17,7 @@ python3.pkgs.buildPythonApplication rec {
rev = "v${version}"; rev = "v${version}";
sha256 = "0ndrnxwii8lag6vrjpwpf5n36hhv223bb46d431l9gsigbizv0hl"; sha256 = "0ndrnxwii8lag6vrjpwpf5n36hhv223bb46d431l9gsigbizv0hl";
}) })
] ++ stdenv.lib.optional enableDefaultMusicPack ( ] ++ lib.optional enableDefaultMusicPack (
fetchurl { fetchurl {
url = "http://www.emhsoft.com/singularity/endgame-singularity-music-007.zip"; url = "http://www.emhsoft.com/singularity/endgame-singularity-music-007.zip";
sha256 = "0vf2qaf66jh56728pq1zbnw50yckjz6pf6c6qw6dl7vk60kkqnpb"; sha256 = "0vf2qaf66jh56728pq1zbnw50yckjz6pf6c6qw6dl7vk60kkqnpb";
@ -29,7 +29,7 @@ python3.pkgs.buildPythonApplication rec {
propagatedBuildInputs = with python3.pkgs; [ pygame numpy polib ]; propagatedBuildInputs = with python3.pkgs; [ pygame numpy polib ];
# Add the music # Add the music
postInstall = stdenv.lib.optionalString enableDefaultMusicPack '' postInstall = lib.optionalString enableDefaultMusicPack ''
cp -R "../endgame-singularity-music-007" \ cp -R "../endgame-singularity-music-007" \
"$(echo $out/lib/python*/site-packages/singularity)/music" "$(echo $out/lib/python*/site-packages/singularity)/music"
# ↑ we cannot glob on [...]/music, it doesn't exist yet # ↑ we cannot glob on [...]/music, it doesn't exist yet
@ -42,7 +42,7 @@ python3.pkgs.buildPythonApplication rec {
A simulation of a true AI. Go from computer to computer, pursued by the A simulation of a true AI. Go from computer to computer, pursued by the
entire world. Keep hidden, and you might have a chance entire world. Keep hidden, and you might have a chance
''; '';
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
maintainers = with stdenv.lib.maintainers; [ fgaz ]; maintainers = with lib.maintainers; [ fgaz ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ mkDerivation, stdenv, fetchFromGitLab, cmake, qtbase }: { mkDerivation, lib, stdenv, fetchFromGitLab, cmake, qtbase }:
mkDerivation rec { mkDerivation rec {
pname = "enyo-doom"; pname = "enyo-doom";
@ -18,8 +18,8 @@ mkDerivation rec {
meta = { meta = {
homepage = "https://gitlab.com/sdcofer70/enyo-doom"; homepage = "https://gitlab.com/sdcofer70/enyo-doom";
description = "Frontend for Doom engines"; description = "Frontend for Doom engines";
license = stdenv.lib.licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.tadfisher ]; maintainers = [ lib.maintainers.tadfisher ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, cmake, libGL, SDL, SDL_mixer, SDL_net, fetchFromGitHub, makeWrapper }: { lib, stdenv, cmake, libGL, SDL, SDL_mixer, SDL_net, fetchFromGitHub, makeWrapper }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "eternity-engine"; pname = "eternity-engine";
@ -23,8 +23,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = "http://doomworld.com/eternity"; homepage = "http://doomworld.com/eternity";
description = "New school Doom port by James Haley"; description = "New school Doom port by James Haley";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ MP2E ]; maintainers = with lib.maintainers; [ MP2E ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, libGLU, libGL, libX11, xorgproto, tcl, freeglut, freetype { lib, stdenv, fetchurl, libGLU, libGL, libX11, xorgproto, tcl, freeglut, freetype
, sfml, libXi , sfml, libXi
, libXmu, libXext, libXt, libSM, libICE , libXmu, libXext, libXt, libSM, libICE
, libpng, pkgconfig, gettext, intltool , libpng, pkgconfig, gettext, intltool
@ -31,9 +31,9 @@ stdenv.mkDerivation rec {
longDescription = '' longDescription = ''
ExtremeTuxRacer - Tux lies on his belly and accelerates down ice slopes. ExtremeTuxRacer - Tux lies on his belly and accelerates down ice slopes.
''; '';
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
homepage = "https://sourceforge.net/projects/extremetuxracer/"; homepage = "https://sourceforge.net/projects/extremetuxracer/";
maintainers = with stdenv.lib.maintainers; [ ]; maintainers = with lib.maintainers; [ ];
platforms = with stdenv.lib.platforms; linux; platforms = with lib.platforms; linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, SDL2, libogg, libvorbis, zlib, unzip }: { lib, stdenv, fetchurl, pkgconfig, SDL2, libogg, libvorbis, zlib, unzip }:
let let
@ -38,9 +38,9 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = "http://exult.sourceforge.net/"; homepage = "http://exult.sourceforge.net/";
description = "A reimplementation of the Ultima VII game engine"; description = "A reimplementation of the Ultima VII game engine";
maintainers = [ stdenv.lib.maintainers.eelco ]; maintainers = [ lib.maintainers.eelco ];
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
hydraPlatforms = stdenv.lib.platforms.linux; # darwin times out hydraPlatforms = lib.platforms.linux; # darwin times out
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
}; };
} }

View file

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
expat curl jansson libpng libjpeg libGLU libGL libXxf86vm pcre SDL2 vim speex expat curl jansson libpng libjpeg libGLU libGL libXxf86vm pcre SDL2 vim speex
]; ];
installPhase = with stdenv.lib; let installPhase = with lib; let
sys = last (splitString "-" stdenv.hostPlatform.system); sys = last (splitString "-" stdenv.hostPlatform.system);
arch = head (splitString "-" stdenv.hostPlatform.system); arch = head (splitString "-" stdenv.hostPlatform.system);
in '' in ''

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, makeWrapper, makeDesktopItem { lib, stdenv, fetchurl, makeWrapper, makeDesktopItem
, alsaLib, libpulseaudio, libX11, libXcursor, libXinerama, libXrandr, libXi, libGL , alsaLib, libpulseaudio, libX11, libXcursor, libXinerama, libXrandr, libXi, libGL
, libSM, libICE, libXext, factorio-utils , libSM, libICE, libXext, factorio-utils
, releaseType , releaseType
@ -13,7 +13,7 @@ assert releaseType == "alpha"
let let
inherit (stdenv.lib) importJSON; inherit (lib) importJSON;
helpMsg = '' helpMsg = ''
@ -83,7 +83,7 @@ let
if !needsAuth then if !needsAuth then
fetchurl { inherit name url sha256; } fetchurl { inherit name url sha256; }
else else
(stdenv.lib.overrideDerivation (lib.overrideDerivation
(fetchurl { (fetchurl {
inherit name url sha256; inherit name url sha256;
curlOpts = [ curlOpts = [
@ -168,8 +168,8 @@ let
version 1.0 in mid 2020. version 1.0 in mid 2020.
''; '';
homepage = "https://www.factorio.com/"; homepage = "https://www.factorio.com/";
license = stdenv.lib.licenses.unfree; license = lib.licenses.unfree;
maintainers = with stdenv.lib.maintainers; [ Baughn elitak erictapen priegger lukegb ]; maintainers = with lib.maintainers; [ Baughn elitak erictapen priegger lukegb ];
platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" ];
}; };
}; };
@ -180,7 +180,7 @@ let
buildInputs = [ makeWrapper libpulseaudio ]; buildInputs = [ makeWrapper libpulseaudio ];
libPath = stdenv.lib.makeLibraryPath [ libPath = lib.makeLibraryPath [
alsaLib alsaLib
libpulseaudio libpulseaudio
libX11 libX11

View file

@ -2,12 +2,12 @@
# mods. It will eventually be replaced by a nixos-channel that will provide # mods. It will eventually be replaced by a nixos-channel that will provide
# derivations for most or all of the mods tracked through the official mod # derivations for most or all of the mods tracked through the official mod
# manager site. # manager site.
{ stdenv, fetchurl { lib, stdenv, fetchurl
, factorio-utils , factorio-utils
, allRecommendedMods ? true , allRecommendedMods ? true
, allOptionalMods ? false , allOptionalMods ? false
}: }:
with stdenv.lib; with lib;
let let
modDrv = factorio-utils.modDrv { inherit allRecommendedMods allOptionalMods; }; modDrv = factorio-utils.modDrv { inherit allRecommendedMods allOptionalMods; };
in in

View file

@ -1,7 +1,7 @@
# This file provides a top-level function that will be used by both nixpkgs and nixos # This file provides a top-level function that will be used by both nixpkgs and nixos
# to generate mod directories for use at runtime by factorio. # to generate mod directories for use at runtime by factorio.
{ stdenv }: { lib, stdenv }:
with stdenv.lib; with lib;
{ {
mkModDirDrv = mods: # a list of mod derivations mkModDirDrv = mods: # a list of mod derivations
let let

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl}: {lib, stdenv, fetchurl}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "fairymax"; pname = "fairymax";
version = "4.8"; version = "4.8";
@ -32,9 +32,9 @@ stdenv.mkDerivation rec {
and board sizes up to 12x8. A Linux port exists in the and board sizes up to 12x8. A Linux port exists in the
format of a debian package. format of a debian package.
''; '';
license = stdenv.lib.licenses.free ; license = lib.licenses.free ;
maintainers = [stdenv.lib.maintainers.raskin]; maintainers = [lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
homepage = "http://home.hccnet.nl/h.g.muller/dwnldpage.html"; homepage = "http://home.hccnet.nl/h.g.muller/dwnldpage.html";
}; };
} }

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf ] buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf ]
++ stdenv.lib.optional stdenv.isDarwin Cocoa; ++ lib.optional stdenv.isDarwin Cocoa;
meta = with lib; { meta = with lib; {
description = "Free/Libre Action Roleplaying Engine"; description = "Free/Libre Action Roleplaying Engine";

View file

@ -1,8 +1,8 @@
{ stdenv, fetchurl, pkgconfig, cmake { lib, stdenv, fetchurl, pkgconfig, cmake
, perl, gmp, libtap, gperf , perl, gmp, libtap, gperf
, perlPackages, python3 }: , perlPackages, python3 }:
with stdenv.lib; with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "freecell-solver"; pname = "freecell-solver";

View file

@ -8,7 +8,7 @@
}: }:
let let
inherit (stdenv.lib) optional optionals; inherit (lib) optional optionals;
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "freeciv"; pname = "freeciv";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, SDL, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx { lib, stdenv, fetchurl, SDL, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx
, pkgconfig, intltool, fontconfig, libzip, zip, zlib }: , pkgconfig, intltool, fontconfig, libzip, zip, zlib }:
let let
@ -52,10 +52,10 @@ in stdenv.mkDerivation rec {
''; '';
homepage = "http://www.freedink.org/"; homepage = "http://www.freedink.org/";
license = stdenv.lib.licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
maintainers = [ stdenv.lib.maintainers.bjg ]; maintainers = [ lib.maintainers.bjg ];
platforms = stdenv.lib.platforms.all; platforms = lib.platforms.all;
hydraPlatforms = stdenv.lib.platforms.linux; # sdl-config times out on darwin hydraPlatforms = lib.platforms.linux; # sdl-config times out on darwin
}; };
} }

View file

@ -7,7 +7,7 @@ in stdenv.mkDerivation {
inherit version; inherit version;
src = fetchurl { src = fetchurl {
url = "ftp://ftp.osuosl.org/pub/freedroid/freedroidRPG-${stdenv.lib.versions.majorMinor version}/freedroidRPG-${version}.tar.gz"; url = "ftp://ftp.osuosl.org/pub/freedroid/freedroidRPG-${lib.versions.majorMinor version}/freedroidRPG-${version}.tar.gz";
sha256 = "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"; sha256 = "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2";
}; };
@ -15,7 +15,7 @@ in stdenv.mkDerivation {
buildInputs = [ buildInputs = [
SDL SDL_image SDL_gfx SDL_mixer libogg libvorbis lua5_3 libjpeg libpng zlib SDL SDL_image SDL_gfx SDL_mixer libogg libvorbis lua5_3 libjpeg libpng zlib
] ++ stdenv.lib.optional stdenv.isDarwin libiconv; ] ++ lib.optional stdenv.isDarwin libiconv;
meta = with lib; { meta = with lib; {
description = "Isometric 3D RPG similar to game Diablo"; description = "Isometric 3D RPG similar to game Diablo";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, perlPackages, pkgconfig, SDL, SDL_mixer, SDL_Pango, glib }: { lib, stdenv, fetchurl, perlPackages, pkgconfig, SDL, SDL_mixer, SDL_Pango, glib }:
perlPackages.buildPerlModule { perlPackages.buildPerlModule {
pname = "frozen-bubble"; pname = "frozen-bubble";
@ -19,7 +19,7 @@ perlPackages.buildPerlModule {
meta = { meta = {
description = "Puzzle with Bubbles"; description = "Puzzle with Bubbles";
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
maintainers = with stdenv.lib.maintainers; [ puckipedia ]; maintainers = with lib.maintainers; [ puckipedia ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, gtk2, glib, pkgconfig, libGLU, libGL, wxGTK, libX11, xorgproto { lib, stdenv, fetchurl, gtk2, glib, pkgconfig, libGLU, libGL, wxGTK, libX11, xorgproto
, runtimeShell }: , runtimeShell }:
stdenv.mkDerivation { stdenv.mkDerivation {
@ -31,7 +31,7 @@ stdenv.mkDerivation {
meta = { meta = {
description = "Cellular automata engine tuned towards the likes of Falling Sand"; description = "Cellular automata engine tuned towards the likes of Falling Sand";
maintainers = [stdenv.lib.maintainers.raskin]; maintainers = [lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,6 +1,6 @@
{ stdenv, fetchurl, ncurses, xmlto }: { lib, stdenv, fetchurl, ncurses, xmlto }:
with stdenv.lib; with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "galaxis"; pname = "galaxis";

View file

@ -30,10 +30,10 @@ stdenv.mkDerivation rec {
sha256 = "0w54avmbp4i4zps2rb4acmpa641s6wvwbrln4vbdhcz97fx48nzz"; sha256 = "0w54avmbp4i4zps2rb4acmpa641s6wvwbrln4vbdhcz97fx48nzz";
}; };
nativeBuildInputs = [ jam pkgconfig ] ++ stdenv.lib.optional stdenv.isDarwin cctools; nativeBuildInputs = [ jam pkgconfig ] ++ lib.optional stdenv.isDarwin cctools;
buildInputs = [ SDL SDL_mixer SDL_sound gtk2 ] buildInputs = [ SDL SDL_mixer SDL_sound gtk2 ]
++ stdenv.lib.optionals stdenv.isDarwin [ smpeg libvorbis ]; ++ lib.optionals stdenv.isDarwin [ smpeg libvorbis ];
buildPhase = jamenv + "jam -j$NIX_BUILD_CORES"; buildPhase = jamenv + "jam -j$NIX_BUILD_CORES";

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, SDL, SDL_image, SDL_mixer, SDL_net} : {lib, stdenv, fetchurl, SDL, SDL_image, SDL_mixer, SDL_net} :
stdenv.mkDerivation { stdenv.mkDerivation {
name = "gav-0.9.0"; name = "gav-0.9.0";
@ -20,7 +20,7 @@ stdenv.mkDerivation {
meta = { meta = {
description = "Remake of AV Arcade Volleyball"; description = "Remake of AV Arcade Volleyball";
homepage = "http://gav.sourceforge.net/"; homepage = "http://gav.sourceforge.net/";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, SDL, libGLU, libGL, zlib, libpng, libvorbis, libmikmod, SDL_sound } : {lib, stdenv, fetchurl, SDL, libGLU, libGL, zlib, libpng, libvorbis, libmikmod, SDL_sound } :
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gltron-0.70"; name = "gltron-0.70";
@ -22,8 +22,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = "http://www.gltron.org/"; homepage = "http://www.gltron.org/";
description = "Game based on the movie Tron"; description = "Game based on the movie Tron";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
maintainers = with stdenv.lib.maintainers; [viric]; maintainers = with lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux; platforms = with lib.platforms; linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, premake4, bootil }: { lib, stdenv, fetchFromGitHub, premake4, bootil }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gmad-unstable-2015-04-16"; name = "gmad-unstable-2015-04-16";
@ -6,9 +6,9 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Garry's Mod Addon Creator and Extractor"; description = "Garry's Mod Addon Creator and Extractor";
homepage = "https://github.com/garrynewman/gmad"; homepage = "https://github.com/garrynewman/gmad";
license = stdenv.lib.licenses.unfree; license = lib.licenses.unfree;
maintainers = [ stdenv.lib.maintainers.abigailbuccaneer ]; maintainers = [ lib.maintainers.abigailbuccaneer ];
platforms = stdenv.lib.platforms.all; platforms = lib.platforms.all;
}; };
src = fetchFromGitHub { src = fetchFromGitHub {

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, glib, python, gtk2, readline }: { lib, stdenv, fetchurl, pkgconfig, glib, python, gtk2, readline }:
let version = "1.06.002"; in let version = "1.06.002"; in
stdenv.mkDerivation { stdenv.mkDerivation {
@ -14,7 +14,7 @@ stdenv.mkDerivation {
configureFlags = [ "--with-gtk" "--with--board3d" ]; configureFlags = [ "--with-gtk" "--with--board3d" ];
meta = with stdenv.lib; meta = with lib;
{ description = "World class backgammon application"; { description = "World class backgammon application";
homepage = "http://www.gnubg.org/"; homepage = "http://www.gnubg.org/";
license = licenses.gpl3; license = licenses.gpl3;

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, flex, makeWrapper}: {lib, stdenv, fetchurl, flex, makeWrapper}:
let let
s = # Generated upstream information s = # Generated upstream information
rec { rec {
@ -28,8 +28,8 @@ stdenv.mkDerivation {
meta = { meta = {
inherit (s) version; inherit (s) version;
description = "GNU Chess engine"; description = "GNU Chess engine";
maintainers = [stdenv.lib.maintainers.raskin]; maintainers = [lib.maintainers.raskin];
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
license = stdenv.lib.licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl }: { lib, stdenv, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gnugo"; pname = "gnugo";
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "GNU Go - A computer go player"; description = "GNU Go - A computer go player";
homepage = "https://www.gnu.org/software/gnugo/"; homepage = "https://www.gnu.org/software/gnugo/";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
}; };
} }

View file

@ -1,4 +1,4 @@
{ fetchurl, stdenv, openjdk, unzip, makeWrapper }: { fetchurl, lib, stdenv, openjdk, unzip, makeWrapper }:
let let
version = "1.4.9"; version = "1.4.9";
@ -20,10 +20,10 @@ in stdenv.mkDerivation {
done done
''; '';
meta = { meta = {
maintainers = [ stdenv.lib.maintainers.cleverca22 ]; maintainers = [ lib.maintainers.cleverca22 ];
description = "A graphical user interface to programs that play the board game Go and support the Go Text Protocol such as GNU Go"; description = "A graphical user interface to programs that play the board game Go and support the Go Text Protocol such as GNU Go";
homepage = "http://gogui.sourceforge.net/"; homepage = "http://gogui.sourceforge.net/";
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
}; };
} }

View file

@ -1,4 +1,4 @@
{ fetchFromGitHub, stdenv, autoreconfHook, intltool, pkgconfig, libgnome, libgnomeui, GConf }: { fetchFromGitHub, lib, stdenv, autoreconfHook, intltool, pkgconfig, libgnome, libgnomeui, GConf }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "gtetrinet-0.7.11"; name = "gtetrinet-0.7.11";
@ -37,8 +37,8 @@ stdenv.mkDerivation {
that is played over the internet. that is played over the internet.
''; '';
homepage = "http://gtetrinet.sourceforge.net/"; homepage = "http://gtetrinet.sourceforge.net/";
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.chris-martin ]; maintainers = [ lib.maintainers.chris-martin ];
}; };
} }

View file

@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ makeWrapper ncurses perl fortune ] buildInputs = [ makeWrapper ncurses perl fortune ]
++ stdenv.lib.optional stdenv.isDarwin libiconv; ++ lib.optional stdenv.isDarwin libiconv;
preFixup = '' preFixup = ''
wrapProgram "$out/bin/typefortune" \ wrapProgram "$out/bin/typefortune" \

View file

@ -1,4 +1,4 @@
{ fetchgit, stdenv, love, curl, zip }: { fetchgit, lib, stdenv, love, curl, zip }:
stdenv.mkDerivation { stdenv.mkDerivation {
version = "0.12.1"; version = "0.12.1";
@ -32,8 +32,8 @@ stdenv.mkDerivation {
Hawthorne's inheritance. Hawthorne's inheritance.
''; '';
homepage = "https://www.reddit.com/r/hawkthorne"; homepage = "https://www.reddit.com/r/hawkthorne";
license = stdenv.lib.licenses.mit; license = lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [ campadrenalin ]; maintainers = with lib.maintainers; [ campadrenalin ];
broken = true; broken = true;
}; };
} }

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, libX11}: {lib, stdenv, fetchurl, libX11}:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "icbm3d-0.4"; name = "icbm3d-0.4";
@ -17,7 +17,7 @@ stdenv.mkDerivation {
meta = { meta = {
homepage = "http://www.newbreedsoftware.com/icbm3d/"; homepage = "http://www.newbreedsoftware.com/icbm3d/";
description = "3D vector-based clone of the atari game Missile Command"; description = "3D vector-based clone of the atari game Missile Command";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -65,8 +65,8 @@ stdenv.mkDerivation {
meta = with lib; { meta = with lib; {
description = "Simple text adventure interpreter for Unix and Windows"; description = "Simple text adventure interpreter for Unix and Windows";
homepage = "https://instead.syscall.ru/"; homepage = "https://instead.syscall.ru/";
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
platforms = with stdenv.lib.platforms; linux; platforms = with lib.platforms; linux;
maintainers = with maintainers; [ pSub ]; maintainers = with maintainers; [ pSub ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchFromGitLab , fetchFromGitLab
, fetchzip , fetchzip
, SDL2, SDL2_mixer, SDL2_net , SDL2, SDL2_mixer, SDL2_net
@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
wrapPythonPrograms wrapPythonPrograms
''; '';
meta = with stdenv.lib; { meta = with lib; {
description = "cute, true multiplayer platform game with bunnies"; description = "cute, true multiplayer platform game with bunnies";
homepage = "https://libregames.gitlab.io/jumpnbump/"; homepage = "https://libregames.gitlab.io/jumpnbump/";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;

View file

@ -33,9 +33,9 @@ stdenv.mkDerivation rec {
sourceRoot = "source"; sourceRoot = "source";
srcs = [ free-src ] ++ stdenv.lib.optional unfree_assets assets; srcs = [ free-src ] ++ lib.optional unfree_assets assets;
postUnpack = stdenv.lib.optionalString unfree_assets '' postUnpack = lib.optionalString unfree_assets ''
mv data $sourceRoot mv data $sourceRoot
''; '';
@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
cp -r data_free $out/share cp -r data_free $out/share
cp -r data_contrib $out/share cp -r data_contrib $out/share
${stdenv.lib.optionalString unfree_assets "cp -r data $out/share"} ${lib.optionalString unfree_assets "cp -r data $out/share"}
''; '';
meta = with lib; { meta = with lib; {

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, SDL, SDL_image, libGLU, libGL} : {lib, stdenv, fetchurl, SDL, SDL_image, libGLU, libGL} :
stdenv.mkDerivation { stdenv.mkDerivation {
name = "kobodeluxe-0.5.1"; name = "kobodeluxe-0.5.1";
@ -18,7 +18,7 @@ stdenv.mkDerivation {
meta = { meta = {
homepage = "http://olofson.net/kobodl/"; homepage = "http://olofson.net/kobodl/";
description = "Enhanced version of Akira Higuchi's game XKobo for Un*x systems with X11"; description = "Enhanced version of Akira Higuchi's game XKobo for Un*x systems with X11";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchFromGitHub , fetchFromGitHub
, fetchpatch , fetchpatch
, requireFile , requireFile
@ -10,7 +10,7 @@
, useProprietaryAssets ? true , useProprietaryAssets ? true
}: }:
with stdenv.lib; with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "koboredux"; pname = "koboredux";
version = "0.7.5.1"; version = "0.7.5.1";

View file

@ -16,6 +16,6 @@ stdenv.mkDerivation rec {
license = licenses.gpl2; license = licenses.gpl2;
maintainers = [ maintainers.ciil ]; maintainers = [ maintainers.ciil ];
platforms = platforms.unix; platforms = platforms.unix;
hydraPlatforms = stdenv.lib.platforms.linux; # sdl-config times out on darwin hydraPlatforms = lib.platforms.linux; # sdl-config times out on darwin
}; };
} }

View file

@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
buildInputs = [ allegro ]; buildInputs = [ allegro ];
configureFlags = stdenv.lib.optional stdenv.isx86_64 "--disable-asm"; configureFlags = lib.optional stdenv.isx86_64 "--disable-asm";
hardeningDisable = [ "format" ]; hardeningDisable = [ "format" ];

View file

@ -1,7 +1,7 @@
{ stdenv, fetchFromGitLab, cmake, openal, pkgconfig, libogg, { lib, stdenv, fetchFromGitLab, cmake, openal, pkgconfig, libogg,
libvorbis, SDL2, makeWrapper, libpng, libjpeg_turbo, libGLU }: libvorbis, SDL2, makeWrapper, libpng, libjpeg_turbo, libGLU }:
with stdenv.lib; with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -26,6 +26,6 @@ stdenv.mkDerivation rec {
homepage = "https://osslugaru.gitlab.io"; homepage = "https://osslugaru.gitlab.io";
maintainers = [ ]; maintainers = [ ];
platforms = platforms.linux; platforms = platforms.linux;
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, gtk, openssl }: { lib, stdenv, fetchurl, pkgconfig, gtk, openssl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "macopix-1.7.4"; name = "macopix-1.7.4";
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Mascot Constructive Pilot for X"; description = "Mascot Constructive Pilot for X";
homepage = "http://rosegray.sakura.ne.jp/macopix/index-e.html"; homepage = "http://rosegray.sakura.ne.jp/macopix/index-e.html";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, cmake, pkg-config, git, curl, SDL2, xercesc, openal, lua, libvlc { lib, stdenv, cmake, pkg-config, git, curl, SDL2, xercesc, openal, lua, libvlc
, libjpeg, wxGTK, cppunit, ftgl, glew, libogg, libvorbis, buildEnv, libpng , libjpeg, wxGTK, cppunit, ftgl, glew, libogg, libvorbis, buildEnv, libpng
, fontconfig, freetype, xorg, makeWrapper, bash, which, gnome3, libGLU, glib , fontconfig, freetype, xorg, makeWrapper, bash, which, gnome3, libGLU, glib
, fetchFromGitHub , fetchFromGitHub
@ -48,7 +48,7 @@ stdenv.mkDerivation {
done done
''; '';
meta = with stdenv.lib; { meta = with lib; {
description = "An entertaining free (freeware and free software) and open source cross-platform 3D real-time strategy (RTS) game"; description = "An entertaining free (freeware and free software) and open source cross-platform 3D real-time strategy (RTS) game";
license = licenses.gpl3; license = licenses.gpl3;
homepage = "http://megaglest.org/"; homepage = "http://megaglest.org/";

View file

@ -41,7 +41,7 @@ let
categories = "Game;"; categories = "Game;";
}; };
envLibPath = stdenv.lib.makeLibraryPath [ envLibPath = lib.makeLibraryPath [
curl curl
libpulseaudio libpulseaudio
systemd systemd
@ -50,7 +50,7 @@ let
libXxf86vm # needed only for versions <1.13 libXxf86vm # needed only for versions <1.13
]; ];
libPath = stdenv.lib.makeLibraryPath ([ libPath = lib.makeLibraryPath ([
alsaLib alsaLib
atk atk
cairo cairo
@ -137,8 +137,8 @@ stdenv.mkDerivation rec {
# Do not create `GPUCache` in current directory # Do not create `GPUCache` in current directory
makeWrapper $out/opt/minecraft-launcher/minecraft-launcher $out/bin/minecraft-launcher \ makeWrapper $out/opt/minecraft-launcher/minecraft-launcher $out/bin/minecraft-launcher \
--prefix LD_LIBRARY_PATH : ${envLibPath} \ --prefix LD_LIBRARY_PATH : ${envLibPath} \
--prefix PATH : ${stdenv.lib.makeBinPath [ jre ]} \ --prefix PATH : ${lib.makeBinPath [ jre ]} \
--set JAVA_HOME ${stdenv.lib.getBin jre} \ --set JAVA_HOME ${lib.getBin jre} \
--run "cd /tmp" \ --run "cd /tmp" \
"''${gappsWrapperArgs[@]}" "''${gappsWrapperArgs[@]}"
''; '';

View file

@ -4,7 +4,7 @@
, leveldb, postgresql, hiredis, libiconv, OpenGL, OpenAL ? openal, Carbon, Cocoa , leveldb, postgresql, hiredis, libiconv, OpenGL, OpenAL ? openal, Carbon, Cocoa
}: }:
with stdenv.lib; with lib;
let let
boolToCMake = b: if b then "ON" else "OFF"; boolToCMake = b: if b then "ON" else "OFF";

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, ncurses}: {lib, stdenv, fetchurl, ncurses}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
baseName = "moon-buggy"; baseName = "moon-buggy";
@ -16,9 +16,9 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = ''A simple character graphics game where you drive some kind of car across the moon's surface''; description = ''A simple character graphics game where you drive some kind of car across the moon's surface'';
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
maintainers = [stdenv.lib.maintainers.rybern]; maintainers = [lib.maintainers.rybern];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
homepage = "https://www.seehuhn.de/pages/moon-buggy"; homepage = "https://www.seehuhn.de/pages/moon-buggy";
}; };
} }

View file

@ -2,7 +2,7 @@
let let
jdk = jdk8; jdk = jdk8;
libpath = with xorg; stdenv.lib.makeLibraryPath [ libX11 libXext libXcursor libXrandr libXxf86vm libpulseaudio ]; libpath = with xorg; lib.makeLibraryPath [ libX11 libXext libXcursor libXrandr libXxf86vm libpulseaudio ];
in mkDerivation rec { in mkDerivation rec {
pname = "multimc"; pname = "multimc";
version = "0.6.11"; version = "0.6.11";

View file

@ -1,6 +1,6 @@
{stdenv, fetchurl, ncurses}: {lib, stdenv, fetchurl, ncurses}:
let let
s = s =
rec { rec {
baseName = "n2048"; baseName = "n2048";
version = "0.1"; version = "0.1";
@ -27,9 +27,9 @@ stdenv.mkDerivation {
meta = { meta = {
inherit (s) version; inherit (s) version;
description = ''Console implementation of 2048 game''; description = ''Console implementation of 2048 game'';
license = stdenv.lib.licenses.bsd2; license = lib.licenses.bsd2;
maintainers = [stdenv.lib.maintainers.raskin]; maintainers = [lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
homepage = "http://www.dettus.net/n2048/"; homepage = "http://www.dettus.net/n2048/";
}; };
} }

View file

@ -1,4 +1,4 @@
{ fetchurl, stdenv, SDL, openal, SDL_mixer, libxml2, pkgconfig, libvorbis { lib, fetchurl, stdenv, SDL, openal, SDL_mixer, libxml2, pkgconfig, libvorbis
, libpng, libGLU, libGL, makeWrapper, zlib, freetype }: , libpng, libGLU, libGL, makeWrapper, zlib, freetype }:
let let
@ -34,9 +34,9 @@ stdenv.mkDerivation {
meta = { meta = {
description = "2D action/rpg space game"; description = "2D action/rpg space game";
homepage = "http://www.naev.org"; homepage = "http://www.naev.org";
license = stdenv.lib.licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
maintainers = with stdenv.lib.maintainers; [viric]; maintainers = with lib.maintainers; [viric];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
hydraPlatforms = []; hydraPlatforms = [];
}; };
} }

View file

@ -97,7 +97,7 @@ in stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
preFixup = stdenv.lib.optionalString qtMode '' preFixup = lib.optionalString qtMode ''
wrapQtApp "$out/games/nethack" wrapQtApp "$out/games/nethack"
''; '';

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, SDL2, libGL, libpng, libjpeg, SDL2_ttf, libvorbis, gettext { lib, stdenv, fetchurl, SDL2, libGL, libpng, libjpeg, SDL2_ttf, libvorbis, gettext
, physfs }: , physfs }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
homepage = "https://neverball.org/"; homepage = "https://neverball.org/";
description = "Tilt the floor to roll a ball"; description = "Tilt the floor to roll a ball";
license = "GPL"; license = "GPL";
maintainers = with stdenv.lib.maintainers; [viric]; maintainers = with lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux; platforms = with lib.platforms; linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl { lib, stdenv, fetchurl
, # required for both , # required for both
unzip, zlib, curl, libjpeg, libpng, libvorbis, libtheora unzip, zlib, curl, libjpeg, libpng, libvorbis, libtheora
, libogg, libmodplug , libogg, libmodplug
@ -11,7 +11,7 @@
let let
version = "2.5.2"; version = "2.5.2";
version_short = stdenv.lib.replaceChars [ "." ] [ "" ] version; version_short = lib.replaceChars [ "." ] [ "" ] version;
in stdenv.mkDerivation { in stdenv.mkDerivation {
pname = "nexuiz"; pname = "nexuiz";
inherit version; inherit version;
@ -71,7 +71,7 @@ in stdenv.mkDerivation {
meta = { meta = {
description = "A free fast-paced first-person shooter"; description = "A free fast-paced first-person shooter";
homepage = "http://www.alientrap.org/games/nexuiz"; homepage = "http://www.alientrap.org/games/nexuiz";
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, SDL, SDL_image, SDL_mixer, SDL_net }: {lib, stdenv, fetchurl, SDL, SDL_image, SDL_mixer, SDL_net }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "njam-1.25"; name = "njam-1.25";
@ -21,7 +21,7 @@ stdenv.mkDerivation {
meta = { meta = {
homepage = "http://trackballs.sourceforge.net/"; homepage = "http://trackballs.sourceforge.net/";
description = "Cross-platform pacman-like game"; description = "Cross-platform pacman-like game";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook pkgconfig gettext ]; nativeBuildInputs = [ autoreconfHook pkgconfig gettext ];
buildInputs = [ ncurses ]; buildInputs = [ ncurses ];
configureFlags = stdenv.lib.optional stdenv.hostPlatform.isMusl "--disable-nls"; configureFlags = lib.optional stdenv.hostPlatform.isMusl "--disable-nls";
meta = with lib; { meta = with lib; {
description = "An ncurses based sudoku game"; description = "An ncurses based sudoku game";

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchpatch , fetchpatch
, fetchurl , fetchurl
, cmake , cmake
@ -54,12 +54,12 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "A complete open-source clone/rewrite of the masterpiece jump-and-run platformer Doukutsu Monogatari (also known as Cave Story)"; description = "A complete open-source clone/rewrite of the masterpiece jump-and-run platformer Doukutsu Monogatari (also known as Cave Story)";
license = with stdenv.lib.licenses; [ license = with lib.licenses; [
gpl3 # Game engine gpl3 # Game engine
unfreeRedistributable # Game assets, freeware unfreeRedistributable # Game assets, freeware
]; ];
maintainers = [ stdenv.lib.maintainers.scubed2 ]; maintainers = [ lib.maintainers.scubed2 ];
homepage = "https://github.com/nxengine/nxengine-evo"; homepage = "https://github.com/nxengine/nxengine-evo";
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, cmake, fetchurl, pkgconfig, SDL, SDL_mixer, SDL_net, wxGTK30 }: { lib, stdenv, cmake, fetchurl, pkgconfig, SDL, SDL_mixer, SDL_net, wxGTK30 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "odamex"; pname = "odamex";
@ -15,8 +15,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = "http://odamex.net/"; homepage = "http://odamex.net/";
description = "A client/server port for playing old-school Doom online"; description = "A client/server port for playing old-school Doom online";
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ MP2E ]; maintainers = with lib.maintainers; [ MP2E ];
}; };
} }

View file

@ -1,7 +1,7 @@
{ stdenv, config, fetchurl, libX11, libXext, libXinerama, libXrandr { lib, stdenv, config, fetchurl, libX11, libXext, libXinerama, libXrandr
, libXrender, fontconfig, freetype, openal, runtimeShell }: , libXrender, fontconfig, freetype, openal, runtimeShell }:
let inherit (stdenv.lib) makeLibraryPath; in let inherit (lib) makeLibraryPath; in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "oilrush"; name = "oilrush";
@ -69,9 +69,9 @@ stdenv.mkDerivation {
of Tower Defense. of Tower Defense.
''; '';
homepage = "http://oilrush-game.com/"; homepage = "http://oilrush-game.com/";
license = stdenv.lib.licenses.unfree; license = lib.licenses.unfree;
#maintainers = with stdenv.lib.maintainers; [ astsmtl ]; #maintainers = with lib.maintainers; [ astsmtl ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
hydraPlatforms = []; hydraPlatforms = [];
}; };

View file

@ -1,4 +1,4 @@
{ fetchurl, makeWrapper, patchelf, pkgs, stdenv, SDL, libglvnd, libogg, libvorbis, curl, openal }: { lib, fetchurl, makeWrapper, patchelf, pkgs, stdenv, SDL, libglvnd, libogg, libvorbis, curl, openal }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "openarena"; pname = "openarena";
@ -15,7 +15,7 @@ stdenv.mkDerivation {
installPhase = let installPhase = let
gameDir = "$out/openarena-$version"; gameDir = "$out/openarena-$version";
interpreter = "$(< \"$NIX_CC/nix-support/dynamic-linker\")"; interpreter = "$(< \"$NIX_CC/nix-support/dynamic-linker\")";
libPath = stdenv.lib.makeLibraryPath [ SDL libglvnd libogg libvorbis curl openal ]; libPath = lib.makeLibraryPath [ SDL libglvnd libogg libvorbis curl openal ];
arch = { arch = {
"x86_64-linux" = "x86_64"; "x86_64-linux" = "x86_64";
"i386-linux" = "i386"; "i386-linux" = "i386";
@ -36,8 +36,8 @@ stdenv.mkDerivation {
meta = { meta = {
description = "Crossplatform openarena client"; description = "Crossplatform openarena client";
homepage = "http://openarena.ws/"; homepage = "http://openarena.ws/";
maintainers = [ stdenv.lib.maintainers.wyvie ]; maintainers = [ lib.maintainers.wyvie ];
platforms = [ "i386-linux" "x86_64-linux" ]; platforms = [ "i386-linux" "x86_64-linux" ];
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
}; };
} }

View file

@ -20,7 +20,7 @@ in stdenv.mkDerivation rec {
postInstall = '' postInstall = ''
mv -v $out/games/openclonk $out/bin/ mv -v $out/games/openclonk $out/bin/
'' + stdenv.lib.optionalString enableSoundtrack '' '' + lib.optionalString enableSoundtrack ''
ln -sv ${soundtrack_src} $out/share/games/openclonk/Music.ocg ln -sv ${soundtrack_src} $out/share/games/openclonk/Music.ocg
''; '';

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, libX11, xorgproto, gd, SDL, SDL_image, SDL_mixer, zlib { lib, stdenv, fetchurl, libX11, xorgproto, gd, SDL, SDL_image, SDL_mixer, zlib
, libxml2, pkg-config, curl, cmake, libzip }: , libxml2, pkg-config, curl, cmake, libzip }:
stdenv.mkDerivation { stdenv.mkDerivation {
@ -35,7 +35,7 @@ stdenv.mkDerivation {
meta = { meta = {
homepage = "http://openlierox.net"; homepage = "http://openlierox.net";
description = "Real-time game with Worms-like shooting"; description = "Real-time game with Worms-like shooting";
license = stdenv.lib.licenses.lgpl2Plus; license = lib.licenses.lgpl2Plus;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,13 +1,13 @@
/* The reusable code, and package attributes, between OpenRA engine packages (engine.nix) /* The reusable code, and package attributes, between OpenRA engine packages (engine.nix)
and out-of-tree mod packages (mod.nix). and out-of-tree mod packages (mod.nix).
*/ */
{ stdenv, makeSetupHook, curl, unzip, dos2unix, pkgconfig, makeWrapper { lib, stdenv, makeSetupHook, curl, unzip, dos2unix, pkgconfig, makeWrapper
, lua, mono, dotnetPackages, python , lua, mono, dotnetPackages, python
, libGL, freetype, openal, SDL2 , libGL, freetype, openal, SDL2
, zenity , zenity
}: }:
with stdenv.lib; with lib;
let let
path = makeBinPath ([ mono python ] ++ optional (zenity != null) zenity); path = makeBinPath ([ mono python ] ++ optional (zenity != null) zenity);

View file

@ -7,14 +7,14 @@
This package could be seen as providing a set of in-tree mods, This package could be seen as providing a set of in-tree mods,
while the `mod.nix` pacakges provide a single out-of-tree mod. while the `mod.nix` pacakges provide a single out-of-tree mod.
*/ */
{ stdenv { lib, stdenv
, packageAttrs , packageAttrs
, patchEngine , patchEngine
, wrapLaunchGame , wrapLaunchGame
, engine , engine
}: }:
with stdenv.lib; with lib;
stdenv.mkDerivation (recursiveUpdate packageAttrs rec { stdenv.mkDerivation (recursiveUpdate packageAttrs rec {
name = "${pname}-${version}"; name = "${pname}-${version}";

View file

@ -6,7 +6,7 @@
The engine is relatively small and quick to build, so this is not much of a problem. The engine is relatively small and quick to build, so this is not much of a problem.
Building a mod will result in a wrapper script that starts the mod inside the specified engine. Building a mod will result in a wrapper script that starts the mod inside the specified engine.
*/ */
{ stdenv { lib, stdenv
, packageAttrs , packageAttrs
, patchEngine , patchEngine
, wrapLaunchGame , wrapLaunchGame
@ -14,7 +14,7 @@
, engine , engine
}: }:
with stdenv.lib; with lib;
let let
engineSourceName = engine.src.name or "engine"; engineSourceName = engine.src.name or "engine";

View file

@ -16,7 +16,7 @@ stdenv.mkDerivation {
buildInputs = [ buildInputs = [
sfml libGLU libGL bullet glm libmad xlibsWrapper openal SDL2 boost ffmpeg_3 sfml libGLU libGL bullet glm libmad xlibsWrapper openal SDL2 boost ffmpeg_3
] ++ stdenv.lib.optionals stdenv.isDarwin [ OpenAL Cocoa ]; ] ++ lib.optionals stdenv.isDarwin [ OpenAL Cocoa ];
meta = with lib; { meta = with lib; {
description = "Unofficial open source recreation of the classic Grand Theft Auto III game executable"; description = "Unofficial open source recreation of the classic Grand Theft Auto III game executable";

View file

@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
freetype SDL2 SDL2_image libGL zlib curl glew opusfile openal libogg freetype SDL2 SDL2_image libGL zlib curl glew opusfile openal libogg
] ++ stdenv.lib.optionals stdenv.hostPlatform.isDarwin [ ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
Cocoa Cocoa
]; ];

View file

@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig which makeWrapper ]; nativeBuildInputs = [ pkgconfig which makeWrapper ];
buildInputs = [ SDL2 libpng xz zlib freetype fontconfig libxdg_basedir ] buildInputs = [ SDL2 libpng xz zlib freetype fontconfig libxdg_basedir ]
++ stdenv.lib.optionals withFluidSynth [ fluidsynth soundfont-fluid ]; ++ lib.optionals withFluidSynth [ fluidsynth soundfont-fluid ];
prefixKey = "--prefix-dir="; prefixKey = "--prefix-dir=";
@ -51,23 +51,23 @@ stdenv.mkDerivation rec {
postInstall = '' postInstall = ''
mv $out/games/ $out/bin mv $out/games/ $out/bin
${stdenv.lib.optionalString withOpenGFX '' ${lib.optionalString withOpenGFX ''
cp ${opengfx}/* $out/share/games/openttd/baseset cp ${opengfx}/* $out/share/games/openttd/baseset
''} ''}
mkdir -p $out/share/games/openttd/data mkdir -p $out/share/games/openttd/data
${stdenv.lib.optionalString withOpenSFX '' ${lib.optionalString withOpenSFX ''
cp ${opensfx}/*.{obs,cat} $out/share/games/openttd/data cp ${opensfx}/*.{obs,cat} $out/share/games/openttd/data
''} ''}
mkdir $out/share/games/openttd/baseset/openmsx mkdir $out/share/games/openttd/baseset/openmsx
${stdenv.lib.optionalString withOpenMSX '' ${lib.optionalString withOpenMSX ''
cp ${openmsx}/*.{obm,mid} $out/share/games/openttd/baseset/openmsx cp ${openmsx}/*.{obm,mid} $out/share/games/openttd/baseset/openmsx
''} ''}
${stdenv.lib.optionalString withFluidSynth '' ${lib.optionalString withFluidSynth ''
wrapProgram $out/bin/openttd \ wrapProgram $out/bin/openttd \
--add-flags -m \ --add-flags -m \
--add-flags extmidi:cmd=${playmidi}/bin/playmidi --add-flags extmidi:cmd=${playmidi}/bin/playmidi

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, fetchzip, SDL, SDL_net}: { lib, stdenv, fetchurl, fetchzip, SDL, SDL_net }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "opentyrian"; pname = "opentyrian";
@ -31,6 +31,6 @@ stdenv.mkDerivation rec {
description = ''Open source port of the game "Tyrian"''; description = ''Open source port of the game "Tyrian"'';
homepage = "https://bitbucket.org/opentyrian/opentyrian"; homepage = "https://bitbucket.org/opentyrian/opentyrian";
# This does not account of Tyrian data. # This does not account of Tyrian data.
# license = stdenv.lib.licenses.gpl2; # license = lib.licenses.gpl2;
}; };
} }

View file

@ -1,4 +1,4 @@
{stdenv, fetchFromGitHub, cmake, libGLU, libGL, zlib, openssl, libyamlcpp, boost {lib, stdenv, fetchFromGitHub, cmake, libGLU, libGL, zlib, openssl, libyamlcpp, boost
, SDL, SDL_image, SDL_mixer, SDL_gfx }: , SDL, SDL_image, SDL_mixer, SDL_gfx }:
let version = "1.0.0.2019.10.18"; in let version = "1.0.0.2019.10.18"; in
@ -19,9 +19,9 @@ stdenv.mkDerivation {
description = "Open source clone of UFO: Enemy Unknown"; description = "Open source clone of UFO: Enemy Unknown";
homepage = "https://openxcom.org"; homepage = "https://openxcom.org";
repositories.git = "https://github.com/SupSuper/OpenXcom.git"; repositories.git = "https://github.com/SupSuper/OpenXcom.git";
maintainers = [ stdenv.lib.maintainers.cpages ]; maintainers = [ lib.maintainers.cpages ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, bash, jre }: { lib, stdenv, fetchurl, bash, jre }:
let let
mcVersion = "1.16.4"; mcVersion = "1.16.4";
buildNum = "296"; buildNum = "296";
@ -29,8 +29,8 @@ in stdenv.mkDerivation {
meta = { meta = {
description = "High-performance Minecraft Server"; description = "High-performance Minecraft Server";
homepage = "https://papermc.io/"; homepage = "https://papermc.io/";
license = stdenv.lib.licenses.gpl3Only; license = lib.licenses.gpl3Only;
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ aaronjanse ]; maintainers = with lib.maintainers; [ aaronjanse ];
}; };
} }

View file

@ -1,4 +1,4 @@
{stdenv, fetchgit, cmake, SDL2, SDL2_image, boost, libpng, SDL2_mixer {lib, stdenv, fetchgit, cmake, SDL2, SDL2_image, boost, libpng, SDL2_mixer
, pkgconfig, libGLU, libGL, git, jsoncpp }: , pkgconfig, libGLU, libGL, git, jsoncpp }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "pingus"; pname = "pingus";
@ -15,8 +15,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = ''A puzzle game with mechanics similar to Lemmings''; description = ''A puzzle game with mechanics similar to Lemmings'';
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = [stdenv.lib.maintainers.raskin]; maintainers = [lib.maintainers.raskin];
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
}; };
} }

Some files were not shown because too many files have changed in this diff Show more