···11-{ stdenv, fetchurl, gtk2-x11, glib, pango, cairo, atk, gdk-pixbuf, libX11 }:
11+{ lib, stdenv, fetchurl, gtk2-x11, glib, pango, cairo, atk, gdk-pixbuf, libX11 }:
2233# Arena is free software in the sense of "free beer" but not as in "free
44# speech". We can install it as we please, but we cannot re-distribute it in
···7788let
991010- inherit (stdenv.lib) makeLibraryPath;
1010+ inherit (lib) makeLibraryPath;
1111 libDir = "lib64";
12121313in
···6666 UCI protocol I, II. Furthermore, compatible to Chess960, DGT electronic
6767 chess board & DGT clocks and much more.
6868 '';
6969- license = stdenv.lib.licenses.unfree;
6969+ license = lib.licenses.unfree;
7070 platforms = ["x86_64-linux"];
7171- hydraPlatforms = stdenv.lib.platforms.none;
7171+ hydraPlatforms = lib.platforms.none;
7272 };
73737474}
···2929 meta = with lib; {
3030 homepage = "https://github.com/dhewm/dhewm3";
3131 description = "Doom 3 port to SDL";
3232- license = stdenv.lib.licenses.gpl3;
3232+ license = lib.licenses.gpl3;
3333 maintainers = with maintainers; [ MP2E ];
3434 platforms = with platforms; linux;
3535 };
+2-2
pkgs/games/domination/default.nix
···11-{ stdenv
11+{ lib, stdenv
22, fetchsvn
33# jdk8 is needed for building, but the game runs on newer jres as well
44, jdk8
···7676 install -Dm644 build/game/resources/icon.png $out/share/pixmaps/domination.png
7777 '';
78787979- meta = with stdenv.lib; {
7979+ meta = with lib; {
8080 homepage = "http://domination.sourceforge.net/";
8181 downloadPage = "http://domination.sourceforge.net/download.shtml";
8282 description = "A game that is a bit like the board game Risk or RisiKo";
···11-{ stdenv, fetchurl, libGLU, libGL, SDL, SDL_mixer, SDL_image, SDL_ttf }:
11+{ lib, stdenv, fetchurl, libGLU, libGL, SDL, SDL_mixer, SDL_image, SDL_ttf }:
2233stdenv.mkDerivation rec {
44 # pf5234 (a developer?) at freenode #egoboo told me that I better use 2.7.3 until
···5050 description = "3D dungeon crawling adventure";
51515252 homepage = "http://www.freedink.org/";
5353- license = stdenv.lib.licenses.gpl2Plus;
5353+ license = lib.licenses.gpl2Plus;
54545555 # I take it out of hydra as it does not work as well as I'd like
5656- # maintainers = [ stdenv.lib.maintainers.bjg ];
5757- # platforms = stdenv.lib.platforms.all;
5656+ # maintainers = [ lib.maintainers.bjg ];
5757+ # platforms = lib.platforms.all;
5858 };
5959}
+5-5
pkgs/games/endgame-singularity/default.nix
···11-{ stdenv
11+{ lib, stdenv
22, fetchurl
33, fetchFromGitHub
44, unzip
···1717 rev = "v${version}";
1818 sha256 = "0ndrnxwii8lag6vrjpwpf5n36hhv223bb46d431l9gsigbizv0hl";
1919 })
2020- ] ++ stdenv.lib.optional enableDefaultMusicPack (
2020+ ] ++ lib.optional enableDefaultMusicPack (
2121 fetchurl {
2222 url = "http://www.emhsoft.com/singularity/endgame-singularity-music-007.zip";
2323 sha256 = "0vf2qaf66jh56728pq1zbnw50yckjz6pf6c6qw6dl7vk60kkqnpb";
···2929 propagatedBuildInputs = with python3.pkgs; [ pygame numpy polib ];
30303131 # Add the music
3232- postInstall = stdenv.lib.optionalString enableDefaultMusicPack ''
3232+ postInstall = lib.optionalString enableDefaultMusicPack ''
3333 cp -R "../endgame-singularity-music-007" \
3434 "$(echo $out/lib/python*/site-packages/singularity)/music"
3535 # ↑ we cannot glob on [...]/music, it doesn't exist yet
···4242 A simulation of a true AI. Go from computer to computer, pursued by the
4343 entire world. Keep hidden, and you might have a chance
4444 '';
4545- license = stdenv.lib.licenses.gpl2;
4646- maintainers = with stdenv.lib.maintainers; [ fgaz ];
4545+ license = lib.licenses.gpl2;
4646+ maintainers = with lib.maintainers; [ fgaz ];
4747 };
4848}
···22# mods. It will eventually be replaced by a nixos-channel that will provide
33# derivations for most or all of the mods tracked through the official mod
44# manager site.
55-{ stdenv, fetchurl
55+{ lib, stdenv, fetchurl
66, factorio-utils
77, allRecommendedMods ? true
88, allOptionalMods ? false
99}:
1010-with stdenv.lib;
1010+with lib;
1111let
1212 modDrv = factorio-utils.modDrv { inherit allRecommendedMods allOptionalMods; };
1313in
+2-2
pkgs/games/factorio/utils.nix
···11# This file provides a top-level function that will be used by both nixpkgs and nixos
22# to generate mod directories for use at runtime by factorio.
33-{ stdenv }:
44-with stdenv.lib;
33+{ lib, stdenv }:
44+with lib;
55{
66 mkModDirDrv = mods: # a list of mod derivations
77 let
+4-4
pkgs/games/fairymax/default.nix
···11-{stdenv, fetchurl}:
11+{lib, stdenv, fetchurl}:
22stdenv.mkDerivation rec {
33 pname = "fairymax";
44 version = "4.8";
···3232 and board sizes up to 12x8. A Linux port exists in the
3333 format of a debian package.
3434 '';
3535- license = stdenv.lib.licenses.free ;
3636- maintainers = [stdenv.lib.maintainers.raskin];
3737- platforms = stdenv.lib.platforms.linux;
3535+ license = lib.licenses.free ;
3636+ maintainers = [lib.maintainers.raskin];
3737+ platforms = lib.platforms.linux;
3838 homepage = "http://home.hccnet.nl/h.g.muller/dwnldpage.html";
3939 };
4040}
···11-{ fetchurl, stdenv, openjdk, unzip, makeWrapper }:
11+{ fetchurl, lib, stdenv, openjdk, unzip, makeWrapper }:
2233let
44 version = "1.4.9";
···2020 done
2121 '';
2222 meta = {
2323- maintainers = [ stdenv.lib.maintainers.cleverca22 ];
2323+ maintainers = [ lib.maintainers.cleverca22 ];
2424 description = "A graphical user interface to programs that play the board game Go and support the Go Text Protocol such as GNU Go";
2525 homepage = "http://gogui.sourceforge.net/";
2626- platforms = stdenv.lib.platforms.unix;
2727- license = stdenv.lib.licenses.gpl3;
2626+ platforms = lib.platforms.unix;
2727+ license = lib.licenses.gpl3;
2828 };
2929}
···1616 license = licenses.gpl2;
1717 maintainers = [ maintainers.ciil ];
1818 platforms = platforms.unix;
1919- hydraPlatforms = stdenv.lib.platforms.linux; # sdl-config times out on darwin
1919+ hydraPlatforms = lib.platforms.linux; # sdl-config times out on darwin
2020 };
2121}
···77 This package could be seen as providing a set of in-tree mods,
88 while the `mod.nix` pacakges provide a single out-of-tree mod.
99*/
1010-{ stdenv
1010+{ lib, stdenv
1111, packageAttrs
1212, patchEngine
1313, wrapLaunchGame
1414, engine
1515}:
16161717-with stdenv.lib;
1717+with lib;
18181919stdenv.mkDerivation (recursiveUpdate packageAttrs rec {
2020 name = "${pname}-${version}";
+2-2
pkgs/games/openra/mod.nix
···66 The engine is relatively small and quick to build, so this is not much of a problem.
77 Building a mod will result in a wrapper script that starts the mod inside the specified engine.
88*/
99-{ stdenv
99+{ lib, stdenv
1010, packageAttrs
1111, patchEngine
1212, wrapLaunchGame
···1414, engine
1515}:
16161717-with stdenv.lib;
1717+with lib;
18181919let
2020 engineSourceName = engine.src.name or "engine";
+1-1
pkgs/games/openrw/default.nix
···16161717 buildInputs = [
1818 sfml libGLU libGL bullet glm libmad xlibsWrapper openal SDL2 boost ffmpeg_3
1919- ] ++ stdenv.lib.optionals stdenv.isDarwin [ OpenAL Cocoa ];
1919+ ] ++ lib.optionals stdenv.isDarwin [ OpenAL Cocoa ];
20202121 meta = with lib; {
2222 description = "Unofficial open source recreation of the classic Grand Theft Auto III game executable";
···11-{ stdenv, fetchzip, ncurses, libX11, libXaw, libXt, libXext, libXmu, makeWrapper, writeScript, ... }:
22-let
11+{ lib, stdenv, fetchzip, ncurses, libX11, libXaw, libXt, libXext, libXmu, makeWrapper, writeScript, ... }:
22+let
33 setup = writeScript "setup" ''
44 mkdir -p "$ANGBAND_PATH"
55 # Copy all the data files into place
···26262727 prePatch = ''
2828 # Allow usage of ANGBAND_PATH
2929- substituteInPlace config.h --replace "#define FIXED_PATHS" ""
2929+ substituteInPlace config.h --replace "#define FIXED_PATHS" ""
3030 '';
31313232 preConfigure = ''
···3838 mkdir -p $out/bin
3939 cp sil $out/bin/sil
4040 # Wrap the program to set a user-local ANGBAND_PATH, and run the setup script to copy files into place
4141- # We could just use the options for a user-local save and scores dir, but it tried to write to the
4141+ # We could just use the options for a user-local save and scores dir, but it tried to write to the
4242 # lib directory anyway, so we might as well give everyone a copy
4343 wrapProgram $out/bin/sil \
4444 --run "set -u" \
···4949 meta = {
5050 description = "A rouge-like game set in the first age of Middle-earth";
5151 longDescription = ''
5252- A game of adventure set in the first age of Middle-earth, when the world still
5252+ A game of adventure set in the first age of Middle-earth, when the world still
5353 rang with elven song and gleamed with dwarven mail.
54545555- Walk the dark halls of Angband. Slay creatures black and fell. Wrest a shining
5555+ Walk the dark halls of Angband. Slay creatures black and fell. Wrest a shining
5656 Silmaril from Morgoth’s iron crown.
5757 '';
5858 homepage = "http://www.amirrorclear.net/flowers/game/sil/index.html";
5959- license = stdenv.lib.licenses.gpl2;
6060- maintainers = [ stdenv.lib.maintainers.michaelpj ];
6161- platforms = stdenv.lib.platforms.linux;
5959+ license = lib.licenses.gpl2;
6060+ maintainers = [ lib.maintainers.michaelpj ];
6161+ platforms = lib.platforms.linux;
6262 };
6363}
+2-2
pkgs/games/simutrans/default.nix
···66 # Choose your "paksets" of objects, images, text, music, etc.
77 paksets = config.simutrans.paksets or "pak64 pak64.japan pak128 pak128.britain pak128.german";
8899- result = with stdenv.lib; withPaks (
99+ result = with lib; withPaks (
1010 if paksets == "*" then attrValues pakSpec # taking all
1111 else map (name: pakSpec.${name}) (splitString " " paksets)
1212 );
···242425252626 # As of 2015/03, many packsets still didn't have a release for version 120.
2727- pakSpec = stdenv.lib.mapAttrs
2727+ pakSpec = lib.mapAttrs
2828 (pakName: attrs: mkPak (attrs // {inherit pakName;}))
2929 {
3030 pak64 = {
···11-{ stdenv, fetchurl, ncurses, xmlto }:
11+{ lib, stdenv, fetchurl, ncurses, xmlto }:
2233-with stdenv.lib;
43stdenv.mkDerivation rec {
55-64 pname = "vms-empire";
75 version = "1.15";
86···22202321 makeFlags = [ "DESTDIR=$(out)" ];
24222525- meta = {
2323+ meta = with lib; {
2624 description = "The ancestor of all expand/explore/exploit/exterminate games";
2725 longDescription = ''
2826 Empire is a simulation of a full-scale war between two emperors, the
···3838 sourceRoot = pname;
3939 phases = [ "unpackPhase installPhase" ];
40404141- libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.cc.lib stdenv.cc.libc SDL2 SDL2_mixer
4141+ libPath = lib.makeLibraryPath [ stdenv.cc.cc.lib stdenv.cc.libc SDL2 SDL2_mixer
4242 libogg libvorbis ];
43434444 unpackPhase = ''
4545- # The game is distributed as a shell script, with a tar of mojosetup, and a
4545+ # The game is distributed as a shell script, with a tar of mojosetup, and a
4646 # zip archive attached to the end. Therefore a simple unzip does the job.
4747 # However, to avoid unzip errors, we need to strip those out first.
4848 tail -c +421887 ${src} > ${src}.zip
···2020 meta = {
2121 homepage = "http://www.sqlite.org/";
2222 description = "A single C code file, named sqlite3.c, that contains all C code for the core SQLite library and the FTS3 and RTREE extensions";
2323- platforms = stdenv.lib.platforms.unix;
2323+ platforms = lib.platforms.unix;
2424 maintainers = [ lib.maintainers.lassulus ];
2525 };
2626}