default.nix (1095B)
1 { lib 2 , stdenv 3 , fetchFromGitHub 4 , cmake 5 , boost 6 , bzip2 7 , expat 8 , fmt 9 , gdal 10 , libosmium 11 , protozero 12 , sqlite 13 , zlib 14 }: 15 16 stdenv.mkDerivation { 17 pname = "osmium-surplus"; 18 version = "2022-08-28"; 19 20 src = fetchFromGitHub { 21 owner = "osmcode"; 22 repo = "osmium-surplus"; 23 rev = "e977028727ed9c836cefad3a271040dbe5b2bf7d"; 24 hash = "sha256-Cl7Umi/hn+Kbd5YDV89EmpsL6vm+n5Snt3ceiH4clUY="; 25 }; 26 27 postPatch = lib.optionalString stdenv.isDarwin '' 28 # broken on darwin 29 substituteInPlace src/CMakeLists.txt \ 30 --replace "exec(osp-find-multipolygon-problems" "#" \ 31 --replace "exec(osp-find-relation-problems" "#" 32 ''; 33 34 nativeBuildInputs = [ cmake ]; 35 36 buildInputs = [ 37 boost 38 bzip2 39 expat 40 fmt 41 gdal 42 libosmium 43 protozero 44 sqlite 45 zlib 46 ]; 47 48 meta = with lib; { 49 description = "Collection of assorted small programs based on the Osmium framework"; 50 homepage = "https://github.com/osmcode/osmium-surplus"; 51 license = with licenses; [ gpl3Plus boost ]; 52 maintainers = [ maintainers.sikmir ]; 53 platforms = platforms.unix; 54 }; 55 }