@@ -1,34 +1,30 @@
1−a@{fetchsvn, libxml2, gtk, curl, pkgconfig, lib, ...} :
2−let
3− fetchsvn = a.fetchsvn;
1+{ stdenv, fetchsvn, libxml2, gtk, curl, pkgconfig } :
42
5− buildInputs = with a; [
6− libxml2 gtk curl pkgconfig
7− ];
3+let
4+ version = "30811";
85in
9−rec {
6+stdenv.mkDerivation {
7+ name = "gosmore-r${version}";
108 src = fetchsvn {
119 url = http://svn.openstreetmap.org/applications/rendering/gosmore;
12− sha256 = "0ds61gl75rnzvm0hj9papl5sfcgdv4310df9ch7x9rifssfli9zm";
13− rev = "24178";
14− } + "/";
10+ sha256 = "0qyvrb4xgy4msc7f65widzkvjzc8mlddc4dyr1i76b7wd3gpk0xj";
11+ rev = "${version}";
12+ };
1513
16− inherit buildInputs;
17− configureFlags = [];
14+ buildInputs = [ libxml2 gtk curl ];
1815
19− /* doConfigure should be removed if not needed */
20− phaseNames = ["fixCurlIncludes" "doConfigure" "doMakeInstall"];
16+ nativeBuildInputs = [ pkgconfig ];
2117
22− fixCurlIncludes = a.fullDepEntry ''
18+ prePatch = ''
2319 sed -e '/curl.types.h/d' -i *.{c,h,hpp,cpp}
24− '' ["minInit" "doUnpack"];
20+ '';
2521
26− name = "gosmore-r21657";
27− meta = {
22+ meta = with stdenv.lib; {
2823 description = "Open Street Map viewer";
29− maintainers = [
30− a.lib.maintainers.raskin
24+ homepage = http://sourceforge.net/projects/gosmore/;
25+ maintainers = with maintainers; [
26+ raskin
3127 ];
32− platforms = a.lib.platforms.linux;
28+ platforms = platforms.linux;
3329 };
3430}