nixpkgs/pkgs/servers/db-rest/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
776 B
Nix
Raw Normal View History

2023-09-05 16:31:52 -04:00
{ lib
, buildNpmPackage
, fetchFromGitHub
, nodejs_18
, nix-update-script
, fetchpatch
}:
buildNpmPackage rec {
pname = "db-rest";
2024-01-29 10:28:35 -05:00
version = "6.0.4";
2023-09-05 16:31:52 -04:00
nodejs = nodejs_18;
src = fetchFromGitHub {
owner = "derhuerst";
repo = pname;
rev = version;
2024-01-29 10:28:35 -05:00
hash = "sha256-guiAtPOvU/yqspq+G+mTSIFqBp6Kl0JZBPfjPC+ZM1g=";
2023-09-05 16:31:52 -04:00
};
2024-01-29 10:28:35 -05:00
npmDepsHash = "sha256-lJT344HpHJFN3QO6kVAj1NhRFTwS+EVkR0ePbtIguFo=";
2023-09-05 16:31:52 -04:00
preConfigure = ''
patchShebangs ./build/index.js
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "A clean REST API wrapping around the Deutsche Bahn API";
homepage = "https://v6.db.transport.rest/";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ marie ];
2023-11-23 16:09:35 -05:00
mainProgram = "db-rest";
2023-09-05 16:31:52 -04:00
};
}