Files
nixpkgs/pkgs/by-name/go/gosmore/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

55 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
libxml2,
gtk2,
curl,
pkg-config,
}:
stdenv.mkDerivation rec {
pname = "gosmore";
version = "0-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 <ctime>" -e "s/data/dat/g" -i jni/libgosm.cpp
'';
patches = [ ./pointer_int_comparison.patch ];
patchFlags = [
"-p1"
"--binary"
]; # patch has dos style eol
meta = with lib; {
description = "Open Street Map viewer";
mainProgram = "gosmore";
homepage = "https://sourceforge.net/projects/gosmore/";
maintainers = with maintainers; [
raskin
];
platforms = platforms.linux;
license = licenses.bsd2;
};
}