diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2011-04-17 17:55:29 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2011-04-17 17:55:29 +0000 |
commit | c9f06b05c175336e60b3ac994f74cb4a41867c47 (patch) | |
tree | f50a3021e09fc5eb9cd9e0620cf6223b504b44a3 /pkgs/development/libraries/ggz_base_libs/default.nix | |
parent | 250bdbbdb24174622789b9a2e42f250b1972c3a0 (diff) | |
download | nixlib-c9f06b05c175336e60b3ac994f74cb4a41867c47.tar nixlib-c9f06b05c175336e60b3ac994f74cb4a41867c47.tar.gz nixlib-c9f06b05c175336e60b3ac994f74cb4a41867c47.tar.bz2 nixlib-c9f06b05c175336e60b3ac994f74cb4a41867c47.tar.lz nixlib-c9f06b05c175336e60b3ac994f74cb4a41867c47.tar.xz nixlib-c9f06b05c175336e60b3ac994f74cb4a41867c47.tar.zst nixlib-c9f06b05c175336e60b3ac994f74cb4a41867c47.zip |
Add Widelands RTS
svn path=/nixpkgs/trunk/; revision=26869
Diffstat (limited to 'pkgs/development/libraries/ggz_base_libs/default.nix')
-rw-r--r-- | pkgs/development/libraries/ggz_base_libs/default.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/development/libraries/ggz_base_libs/default.nix b/pkgs/development/libraries/ggz_base_libs/default.nix new file mode 100644 index 000000000000..b74aa3447a3c --- /dev/null +++ b/pkgs/development/libraries/ggz_base_libs/default.nix @@ -0,0 +1,53 @@ +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 + |