2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv
|
2020-04-07 05:23:00 +02:00
|
|
|
, autoreconfHook
|
|
|
|
, fetchbzr
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config
|
2020-04-07 05:23:00 +02:00
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, file
|
|
|
|
, gobject-introspection
|
|
|
|
, json-glib
|
|
|
|
, libsoup
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "timezonemap";
|
2021-10-28 15:06:35 +02:00
|
|
|
version = "0.4.5.1";
|
2020-04-07 05:23:00 +02:00
|
|
|
|
|
|
|
src = fetchbzr {
|
|
|
|
url = "lp:timezonemap";
|
|
|
|
rev = "58";
|
2021-10-28 15:06:35 +02:00
|
|
|
sha256 = "sha256-wCJXwgnN+aZVerjQCm8oT3xIcwmc4ArcEoCh9pMrt+E=";
|
2020-04-07 05:23:00 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config
|
2020-04-07 05:23:00 +02:00
|
|
|
autoreconfHook
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
json-glib
|
|
|
|
libsoup
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"CFLAGS=-Wno-error"
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"sysconfdir=${placeholder "out"}/etc"
|
|
|
|
"localstatedir=\${TMPDIR}"
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
for f in {configure,m4/libtool.m4}; do
|
|
|
|
substituteInPlace $f\
|
|
|
|
--replace /usr/bin/file ${file}/bin/file
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed "s|/usr/share/libtimezonemap|$out/share/libtimezonemap|g" -i ./src/tz.h
|
|
|
|
'';
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2020-04-07 05:23:00 +02:00
|
|
|
homepage = "https://launchpad.net/timezonemap";
|
|
|
|
description = "A GTK+3 Timezone Map Widget";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.mkg20001 ];
|
|
|
|
};
|
|
|
|
}
|