all-packages: Use callPackage where possible
This commit is contained in:
@@ -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 ];
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
a :
|
||||
a @ {libX11, xproto, libXpm, libXt, ...} :
|
||||
let
|
||||
fetchurl = a.fetchurl;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
a :
|
||||
a @ { ncurses, flex, bison, autoconf, automake, m4, coreutils, ... } :
|
||||
let
|
||||
fetchurl = a.fetchurl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user