uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
40
pkgs/applications/misc/tilemaker/default.nix
Normal file
40
pkgs/applications/misc/tilemaker/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, stdenv, fetchFromGitHub, buildPackages, cmake, installShellFiles
|
||||
, boost, lua, protobuf, rapidjson, shapelib, sqlite, zlib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tilemaker";
|
||||
version = "2.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "systemed";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-st6WDCk1RZ2lbfrudtcD+zenntyTMRHrIXw3nX5FHOU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/tilemaker.cpp \
|
||||
--replace "config.json" "$out/share/tilemaker/config-openmaptiles.json" \
|
||||
--replace "process.lua" "$out/share/tilemaker/process-openmaptiles.lua"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake installShellFiles ];
|
||||
|
||||
buildInputs = [ boost lua protobuf rapidjson shapelib sqlite zlib ];
|
||||
|
||||
cmakeFlags = lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
|
||||
"-DPROTOBUF_PROTOC_EXECUTABLE=${buildPackages.protobuf}/bin/protoc";
|
||||
|
||||
postInstall = ''
|
||||
installManPage ../docs/man/tilemaker.1
|
||||
install -Dm644 ../resources/* -t $out/share/tilemaker
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Make OpenStreetMap vector tiles without the stack";
|
||||
homepage = "https://tilemaker.org/";
|
||||
license = licenses.free; # FTWPL
|
||||
maintainers = with maintainers; [ sikmir ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue