diff --git a/pkgs/applications/misc/gosmore/default.nix b/pkgs/by-name/go/gosmore/package.nix similarity index 53% rename from pkgs/applications/misc/gosmore/default.nix rename to pkgs/by-name/go/gosmore/package.nix index bd87e7b4aeb6..2bc778ff9cb2 100644 --- a/pkgs/applications/misc/gosmore/default.nix +++ b/pkgs/by-name/go/gosmore/package.nix @@ -1,24 +1,26 @@ -{ lib, stdenv, fetchsvn, libxml2, gtk2, curl, pkg-config } : +{ lib, stdenv, fetchFromGitHub, libxml2, gtk2, curl, pkg-config }: stdenv.mkDerivation rec { pname = "gosmore"; - version = "31801"; - # the gosmore svn repository does not lock revision numbers of its externals - # so we explicitly disable them to avoid breaking the hash - # especially as the externals appear to be unused - src = fetchsvn { - url = "http://svn.openstreetmap.org/applications/rendering/gosmore"; - sha256 = "0qsckpqx7i7f8gkqhkzdamr65250afk1rpnh3nbman35kdv3dsxi"; - rev = version; - ignoreExternals = true; + version = "unstable-2014-03-17"; + + src = fetchFromGitHub { + owner = "openstreetmap"; + repo = "svn-archive"; + rev = "89b1fbfbc9e9a8b5e78795fd40bdfa60550322fc"; + sparseCheckout = [ "applications/rendering/gosmore" ]; + hash = "sha256-MfuJVsyGWspGNAFD6Ktbbyawb4bPwUITe7WkyFs6JxI="; }; + sourceRoot = "${src.name}/applications/rendering/gosmore"; + buildInputs = [ libxml2 gtk2 curl ]; nativeBuildInputs = [ pkg-config ]; prePatch = '' sed -e '/curl.types.h/d' -i *.{c,h,hpp,cpp} + sed -e "24i #include " -e "s/data/dat/g" -i jni/libgosm.cpp ''; patches = [ ./pointer_int_comparison.patch ]; diff --git a/pkgs/applications/misc/gosmore/pointer_int_comparison.patch b/pkgs/by-name/go/gosmore/pointer_int_comparison.patch similarity index 100% rename from pkgs/applications/misc/gosmore/pointer_int_comparison.patch rename to pkgs/by-name/go/gosmore/pointer_int_comparison.patch diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bce80d5ea35b..7c8fcb545f00 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32304,8 +32304,6 @@ with pkgs; gostatic = callPackage ../applications/misc/gostatic { }; - gosmore = callPackage ../applications/misc/gosmore { stdenv = gcc10StdenvCompat; }; - gossa = callPackage ../applications/networking/gossa { }; gpsbabel = libsForQt5.callPackage ../applications/misc/gpsbabel { };