1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/development/libraries/ggz_base_libs/default.nix
Michael Raskin c9f06b05c1 Add Widelands RTS
svn path=/nixpkgs/trunk/; revision=26869
2011-04-17 17:55:29 +00:00

54 lines
1.2 KiB
Nix

x@{builderDefsPackage
, intltool, openssl, expat, libgcrypt
, ...}:
builderDefsPackage
(a :
let
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
[];
buildInputs = map (n: builtins.getAttr n x)
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
sourceInfo = rec {
baseName="ggz-base-libs";
version="0.99.5";
name="${baseName}-snapshot-${version}";
url="http://mirrors.ibiblio.org/pub/mirrors/ggzgamingzone/ggz/snapshots/${name}.tar.gz";
hash="1cw1vg0fbj36zyggnzidx9cbjwfc1yr4zqmsipxnvns7xa2awbdk";
};
in
rec {
src = a.fetchurl {
url = sourceInfo.url;
sha256 = sourceInfo.hash;
};
inherit (sourceInfo) name version;
inherit buildInputs;
/* doConfigure should be removed if not needed */
phaseNames = ["doConfigure" "doMakeInstall"];
configureFlags = [
"--with-ssl-dir=${a.openssl}/"
"--with-tls"
];
meta = {
description = "GGZ Gaming zone libraries";
maintainers = with a.lib.maintainers;
[
raskin
];
platforms = with a.lib.platforms;
linux;
license = a.lib.licenses.gpl2;
};
passthru = {
updateInfo = {
downloadPage = "http://www.ggzgamingzone.org/releases/";
};
};
}) x