all-packages: Use callPackage where possible

This commit is contained in:
Mathnerd314
2015-09-14 22:27:19 -06:00
parent 7fb1c7efcf
commit eb7404d97a
64 changed files with 409 additions and 726 deletions

View File

@@ -1,5 +1,5 @@
a :
let
a @ { mesa, SDL, SDL_image, SDL_mixer, ... } :
let
s = import ./src-for-default.nix;
buildInputs = with a; [
mesa SDL SDL_mixer SDL_image
@@ -21,7 +21,7 @@ rec {
/* doConfigure should be removed if not needed */
phaseNames = ["preBuild" "doMakeInstall"];
meta = {
description = "A physics-based game";
maintainers = [ a.lib.maintainers.raskin ];

View File

@@ -1,7 +1,7 @@
args : with args;
let
version = lib.attrByPath ["version"] "1.12.1" args;
sha256 = lib.attrByPath ["sha256"]
args @ { libX11, libXext, xextproto, libICE, libSM, xproto, libpng, zlib, ... }: with args;
let
version = lib.attrByPath ["version"] "1.12.1" args;
sha256 = lib.attrByPath ["sha256"]
"0xmrp7vkkp1hfblb6nl3rh2651qsbcm21bnncpnma1sf40jaf8wj" args;
pkgName = "lincity";
in
@@ -17,7 +17,7 @@ rec {
/* doConfigure should be specified separately */
phaseNames = ["doConfigure" "doMakeInstall"];
name = "${pkgName}-" + version;
meta = {
description = "City simulation game";

View File

@@ -1,11 +1,16 @@
a :
let
a @ { xproto, libX11, libXrender
, gmp, mesa, libjpeg, libpng
, expat, gettext, perl
, SDL, SDL_image, SDL_mixer, SDL_ttf
, curl, sqlite
, libogg, libvorbis, libcaca, csound, cunit, ... } :
let
buildInputs = with a; [
xproto libX11 gmp guile
mesa libjpeg libpng
expat gettext perl
SDL SDL_image SDL_mixer SDL_ttf
curl sqlite
curl sqlite
libogg libvorbis csound
libXrender libcaca cunit
];
@@ -27,13 +32,13 @@ rec {
setVars = a.noDepEntry (''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${a.SDL}/include/SDL"
'');
meta = {
description = "Quick tactics game";
maintainers = [
a.lib.maintainers.raskin
];
platforms = with a.lib.platforms;
platforms = with a.lib.platforms;
linux;
homepage = "http://www.gnu.org/software/liquidwar6/";
version = "0.6.3902";

View File

@@ -1,4 +1,4 @@
a :
a @ {libX11, xproto, libXpm, libXt, ...} :
let
fetchurl = a.fetchurl;

View File

@@ -1,4 +1,4 @@
a :
a @ { ncurses, flex, bison, autoconf, automake, m4, coreutils, ... } :
let
fetchurl = a.fetchurl;