@@ -0,0 +1,32 @@
1+{ stdenv, fetchurl, qmake4Hook, unzip, qt4 }:
2+
3+stdenv.mkDerivation rec {
4+ name = "${project}-${version}";
5+ project = "qmetro";
6+ version = "0.7.1";
7+
8+ src = fetchurl {
9+ url = "mirror://sourceforge/${project}/${name}.zip";
10+ sha256 = "1zdj87lzcr43gr2h05g17z31pd22n5kxdwbvx7rx656rmhv0sjq5";
11+ };
12+
13+ nativeBuildInputs = [ qmake4Hook unzip ];
14+
15+ buildInputs = [ qt4 ];
16+
17+ postPatch = ''
18+ sed -e 's#Exec=/usr/bin/qmetro#Exec=qmetro#' -i rc/qmetro.desktop
19+ echo 'LIBS += -lz' >> qmetro.pro
20+ '';
21+
22+ enableParallelBuilding = true;
23+
24+ meta = with stdenv.lib; {
25+ homepage = https://sourceforge.net/projects/qmetro/;
26+ description = "Worldwide transit maps viewer";
27+ license = licenses.gpl3;
28+
29+ maintainter = with maintainers; [ orivej ];
30+ platforms = platforms.unix;
31+ };
32+}