geoclue: reimplement using mkDerivation

This commit is contained in:
Joachim Fasting 2015-04-29 23:56:49 +02:00
parent 8b3c02c14c
commit 048f00a9dc

View File

@ -1,55 +1,30 @@
x@{builderDefsPackage { stdenv, fetchurl, dbus, dbus_glib, glib, pkgconfig, libxml2, gnome, libxslt }:
, dbus, dbus_glib, glib, pkgconfig, libxml2, gnome, libxslt
, ...}:
builderDefsPackage
(a :
let
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
["gnome"];
buildInputs = map (n: builtins.getAttr n x) stdenv.mkDerivation rec {
(builtins.attrNames (builtins.removeAttrs x helperArgNames)) name = "geoclue-0.12.0";
++ [gnome.GConf]; src = fetchurl {
sourceInfo = rec {
baseName="geoclue";
version="0.12.0";
name="${baseName}-${version}";
url = "https://launchpad.net/geoclue/trunk/0.12/+download/${name}.tar.gz"; url = "https://launchpad.net/geoclue/trunk/0.12/+download/${name}.tar.gz";
hash="15j619kvmdgj2hpma92mkxbzjvgn8147a7500zl3bap9g8bkylqg"; sha256 = "15j619kvmdgj2hpma92mkxbzjvgn8147a7500zl3bap9g8bkylqg";
};
in
rec {
src = a.fetchurl {
url = sourceInfo.url;
sha256 = sourceInfo.hash;
}; };
inherit (sourceInfo) name version; buildInputs = [ pkgconfig libxml2 gnome.GConf libxslt ];
inherit buildInputs;
propagatedBuildInputs = [a.dbus a.glib a.dbus_glib]; propagatedBuildInputs = [dbus glib dbus_glib];
/* doConfigure should be removed if not needed */ preConfigure = ''
phaseNames = ["fixConfigure" "doConfigure" "doMakeInstall"]; sed -e '/-Werror/d' -i configure
'';
fixConfigure = a.fullDepEntry '' meta = with stdenv.lib; {
sed -e 's@-Werror@@' -i configure
'' ["minInit" "doUnpack"];
meta = {
description = "Geolocation framework and some data providers"; description = "Geolocation framework and some data providers";
maintainers = with a.lib.maintainers; maintainers = with maintainers; [ raskin ];
[ platforms = platforms.linux;
raskin license = licenses.lgpl2;
];
platforms = with a.lib.platforms;
linux;
license = a.lib.licenses.lgpl2;
}; };
passthru = { passthru = {
updateInfo = { updateInfo = {
downloadPage = "http://folks.o-hand.com/jku/geoclue-releases/"; downloadPage = "http://folks.o-hand.com/jku/geoclue-releases/";
}; };
}; };
}) x }