nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (848B)


      1 {
      2   lib,
      3   rustPlatform,
      4   fetchFromGitHub,
      5   pkg-config,
      6   sqlite,
      7 }:
      8 
      9 rustPlatform.buildRustPackage {
     10   pname = "mbutiles";
     11   version = "0.1.0-unstable-2024-04-12";
     12 
     13   src = fetchFromGitHub {
     14     owner = "amarant";
     15     repo = "mbutiles";
     16     rev = "1f59d2d5c8e9f97c632f791c92200759012a490b";
     17     hash = "sha256-w+fAfRHi/+TaQ4n9AjfBIbXeemCOnkFxR08ev1f+oTc=";
     18   };
     19 
     20   cargoPatches = [ ./cargo-lock.patch ];
     21   useFetchCargoVendor = true;
     22   cargoHash = "sha256-5lHKJ0kb/Zn3hSY6ZFARz60GPWKQ56fsbqL9Lq9VOqE=";
     23 
     24   nativeBuildInputs = [ pkg-config ];
     25 
     26   buildInputs = [ sqlite ];
     27 
     28   meta = {
     29     description = "mbtiles utility in Rust, generate MBTiles from tiles directories and extract tiles from MBTiles file";
     30     homepage = "https://github.com/amarant/mbutiles";
     31     license = lib.licenses.bsd3;
     32     maintainers = [ lib.maintainers.sikmir ];
     33   };
     34 }