Merge pull request #253655 from NyCodeGHG/pkg/db-rest

db-rest: init at 6.0.3

authored by

Lily Foster and committed by
GitHub
2f874218 f2fc5b41

+46
+44
pkgs/servers/db-rest/default.nix
··· 1 + { lib 2 + , buildNpmPackage 3 + , fetchFromGitHub 4 + , nodejs_18 5 + , nix-update-script 6 + , fetchpatch 7 + }: 8 + buildNpmPackage rec { 9 + pname = "db-rest"; 10 + version = "6.0.3"; 11 + 12 + nodejs = nodejs_18; 13 + 14 + src = fetchFromGitHub { 15 + owner = "derhuerst"; 16 + repo = pname; 17 + rev = version; 18 + hash = "sha256-kHT8/8ivqcP6YRBvkZ4jpJ/xBMM1PddLgV1Z/MFmSTM="; 19 + }; 20 + 21 + patches = [ 22 + # add files and bin property to package.json 23 + # keep until https://github.com/derhuerst/db-rest/pull/37 is merged and released 24 + (fetchpatch { 25 + url = "https://github.com/derhuerst/db-rest/commit/7d2c8bebdd5e8152b181748e3c36683ecf9e71c9.patch"; 26 + hash = "sha256-KyNcvSJLQrX8BO/4814wefeeC+s0pvM2ng44q6diU24="; 27 + }) 28 + ]; 29 + 30 + npmDepsHash = "sha256-d/Qs194TU4ooy6GsBsZhrf5H1iPCUnlieBgtuqfAtkQ="; 31 + 32 + preConfigure = '' 33 + patchShebangs ./build/index.js 34 + ''; 35 + 36 + passthru.updateScript = nix-update-script { }; 37 + 38 + meta = { 39 + description = "A clean REST API wrapping around the Deutsche Bahn API"; 40 + homepage = "https://v6.db.transport.rest/"; 41 + license = lib.licenses.isc; 42 + maintainers = with lib.maintainers; [ marie ]; 43 + }; 44 + }
+2
pkgs/top-level/all-packages.nix
··· 292 292 293 293 cve = with python3Packages; toPythonApplication cvelib; 294 294 295 + db-rest = callPackage ../servers/db-rest { }; 296 + 295 297 fiche = callPackage ../servers/fiche { }; 296 298 297 299 fishnet = callPackage ../servers/fishnet { };