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