diff options
author | Joachim Fasting <joachifm@fastmail.fm> | 2015-07-16 03:48:41 +0200 |
---|---|---|
committer | Joachim Fasting <joachifm@fastmail.fm> | 2015-11-24 14:45:15 +0100 |
commit | ad4167e87e647c784a27b07104d32cb41c23ac88 (patch) | |
tree | 07938af1e3ca81fff9aa3c63c2f04688bd2d638f /pkgs/development/libraries/ggz_base_libs | |
parent | e9fd07c706723b89b8b454ada6fda2c1b8a621ab (diff) | |
download | nixpkgs-ad4167e87e647c784a27b07104d32cb41c23ac88.tar nixpkgs-ad4167e87e647c784a27b07104d32cb41c23ac88.tar.gz nixpkgs-ad4167e87e647c784a27b07104d32cb41c23ac88.tar.bz2 nixpkgs-ad4167e87e647c784a27b07104d32cb41c23ac88.tar.lz nixpkgs-ad4167e87e647c784a27b07104d32cb41c23ac88.tar.xz nixpkgs-ad4167e87e647c784a27b07104d32cb41c23ac88.tar.zst nixpkgs-ad4167e87e647c784a27b07104d32cb41c23ac88.zip |
ggz_base_libs: reimplement using mkDerivation
Diffstat (limited to 'pkgs/development/libraries/ggz_base_libs')
-rw-r--r-- | pkgs/development/libraries/ggz_base_libs/default.nix | 59 |
1 files changed, 18 insertions, 41 deletions
diff --git a/pkgs/development/libraries/ggz_base_libs/default.nix b/pkgs/development/libraries/ggz_base_libs/default.nix index b74aa3447a3..5e3adb0ace2 100644 --- a/pkgs/development/libraries/ggz_base_libs/default.nix +++ b/pkgs/development/libraries/ggz_base_libs/default.nix @@ -1,53 +1,30 @@ -x@{builderDefsPackage - , intltool, openssl, expat, libgcrypt - , ...}: -builderDefsPackage -(a : -let - helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ - []; +{ stdenv, fetchurl, intltool, openssl, expat, libgcrypt }: - 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; - }; +stdenv.mkDerivation rec { + version = "0.99.5"; + baseName = "ggz-base-libs"; + name = "${baseName}-snapshot-${version}"; - inherit (sourceInfo) name version; - inherit buildInputs; + src = fetchurl { + url = "http://mirrors.ibiblio.org/pub/mirrors/ggzgamingzone/ggz/snapshots/${name}.tar.gz"; + sha256 = "1cw1vg0fbj36zyggnzidx9cbjwfc1yr4zqmsipxnvns7xa2awbdk"; + }; - /* doConfigure should be removed if not needed */ - phaseNames = ["doConfigure" "doMakeInstall"]; + buildInputs = [ intltool openssl expat libgcrypt ]; configureFlags = [ - "--with-ssl-dir=${a.openssl}/" + "--with-ssl-dir=${openssl}/" "--with-tls" ]; - - meta = { + + meta = with stdenv.lib; { description = "GGZ Gaming zone libraries"; - maintainers = with a.lib.maintainers; + maintainers = with maintainers; [ raskin ]; - platforms = with a.lib.platforms; - linux; - license = a.lib.licenses.gpl2; - }; - passthru = { - updateInfo = { - downloadPage = "http://www.ggzgamingzone.org/releases/"; - }; + platforms = platforms.linux; + license = licenses.gpl2; + downloadPage = "http://www.ggzgamingzone.org/releases/"; }; -}) x - +} |