nur-packages

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

default.nix (687B)


      1 {
      2   lib,
      3   buildGoModule,
      4   fetchFromSourcehut,
      5   sqlite,
      6 }:
      7 
      8 buildGoModule rec {
      9   pname = "mobsql";
     10   version = "0.8.3";
     11 
     12   src = fetchFromSourcehut {
     13     owner = "~mil";
     14     repo = "mobsql";
     15     rev = "v${version}";
     16     hash = "sha256-p2y57z1Jt4aWNClDAcuCucpboCCCo0LmfiBmdgZfCVQ=";
     17   };
     18 
     19   vendorHash = "sha256-YqduGY9c4zRQscjqze3ZOAB8EYj+0/6V7NceRwLe3DY=";
     20 
     21   buildInputs = [ sqlite ];
     22 
     23   postInstall = ''
     24     mv $out/bin/{cli,mobsql}
     25   '';
     26 
     27   meta = {
     28     description = "GTFS to SQLite import tool";
     29     homepage = "https://sr.ht/~mil/mobsql";
     30     license = lib.licenses.gpl3Plus;
     31     maintainers = [ lib.maintainers.sikmir ];
     32     mainProgram = "mobsql";
     33     skip.ci = true;
     34   };
     35 }