nur-packages

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

default.nix (773B)


      1 {
      2   lib,
      3   buildGoModule,
      4   fetchFromGitHub,
      5   testers,
      6   vt2geojson,
      7 }:
      8 
      9 buildGoModule rec {
     10   pname = "vt2geojson";
     11   version = "0.1.6";
     12 
     13   src = fetchFromGitHub {
     14     owner = "wangyoucao577";
     15     repo = "vt2geojson";
     16     rev = "v${version}";
     17     hash = "sha256-2wBMWrraWFDLHc/s/RMW4a4moftwTFeBj7FfaCJgdU0=";
     18   };
     19 
     20   vendorHash = "sha256-FnLxhhytgNC4OIvh9pUM+cVDdNfqVOocjmkzFDU1fmA=";
     21 
     22   ldflags = [
     23     "-s"
     24     "-w"
     25     "-X main.appVersion=${version}"
     26   ];
     27 
     28   passthru.tests.version = testers.testVersion { package = vt2geojson; };
     29 
     30   meta = {
     31     description = "Command line tool to dump Mapbox Vector Tiles to GeoJSON";
     32     homepage = "https://github.com/wangyoucao577/vt2geojson";
     33     license = lib.licenses.mit;
     34     maintainers = [ lib.maintainers.sikmir ];
     35   };
     36 }