nixpkgs/pkgs/development/libraries/timezonemap/default.nix

66 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-04-07 05:23:00 +02:00
, autoreconfHook
, fetchbzr
, 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 = [
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
'';
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 ];
};
}