3
0
Fork 0
forked from mirrors/nixpkgs

lincity: use mkDerivation

This commit is contained in:
Robin Gloster 2016-01-25 21:48:34 +00:00
parent e8f260e40a
commit a44d003502
2 changed files with 13 additions and 18 deletions

View file

@ -1,24 +1,19 @@
args @ { libX11, libXext, xextproto, libICE, libSM, xproto, libpng, zlib, ... }: with args; { stdenv, fetchurl, libX11, libXext, xextproto, libICE, libSM, xproto, libpng, zlib }:
let
version = lib.attrByPath ["version"] "1.12.1" args; stdenv.mkDerivation rec {
sha256 = lib.attrByPath ["sha256"] name = "lincity-${version}";
"0xmrp7vkkp1hfblb6nl3rh2651qsbcm21bnncpnma1sf40jaf8wj" args; version = "1.12.1";
pkgName = "lincity";
in
rec {
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/lincity/${pkgName}-${version}.tar.gz"; url = "mirror://sourceforge/lincity/${name}.tar.gz";
inherit sha256; sha256 = "0xmrp7vkkp1hfblb6nl3rh2651qsbcm21bnncpnma1sf40jaf8wj";
}; };
buildInputs = [libICE libpng libSM libX11 libXext buildInputs = [
xextproto zlib xproto]; libICE libpng libSM libX11 libXext
configureFlags = []; xextproto zlib xproto
];
/* doConfigure should be specified separately */
phaseNames = ["doConfigure" "doMakeInstall"];
name = "${pkgName}-" + version;
meta = { meta = {
description = "City simulation game"; description = "City simulation game";
}; };

View file

@ -14241,7 +14241,7 @@ let
lgogdownloader = callPackage ../games/lgogdownloader { }; lgogdownloader = callPackage ../games/lgogdownloader { };
lincity = builderDefsPackage (callPackage ../games/lincity) {}; lincity = callPackage ../games/lincity {};
lincity_ng = callPackage ../games/lincity/ng.nix {}; lincity_ng = callPackage ../games/lincity/ng.nix {};