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
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPerlPackage,
|
|
fetchFromGitHub,
|
|
GD,
|
|
IPCShareLite,
|
|
JSON,
|
|
LWP,
|
|
mapnik,
|
|
boost,
|
|
nix-update-script,
|
|
pkg-config,
|
|
}:
|
|
|
|
buildPerlPackage rec {
|
|
pname = "Tirex";
|
|
version = "0.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openstreetmap";
|
|
repo = "tirex";
|
|
tag = "v${version}";
|
|
hash = "sha256-tFDyN3slj9ipa9JPB6f+mnzMIW926vOge4ZSbmxjtiE=";
|
|
};
|
|
|
|
patches = [
|
|
# Support Mapnik >= v4.0.0 (no more mapnik-config)
|
|
./use-pkg-config.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
GD
|
|
IPCShareLite
|
|
JSON
|
|
LWP
|
|
mapnik
|
|
boost
|
|
]
|
|
++ mapnik.buildInputs;
|
|
|
|
installPhase = ''
|
|
install -m 755 -d $out/usr/libexec
|
|
make install DESTDIR=$out INSTALLOPTS=""
|
|
mv $out/$out/lib $out/$out/share $out
|
|
rmdir $out/$out $out/nix/store $out/nix
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Tools for running a map tile server";
|
|
homepage = "https://wiki.openstreetmap.org/wiki/Tirex";
|
|
maintainers = with lib.maintainers; [ jglukasik ];
|
|
license = with lib.licenses; [ gpl2Only ];
|
|
};
|
|
}
|