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 20:31:52 +00:00
{ lib
, buildNpmPackage
, fetchFromGitHub
, nodejs_18
, nix-update-script
, fetchpatch
}:
buildNpmPackage rec {
pname = "db-rest";
2024-01-29 15:28:35 +00:00
version = "6.0.4";
2023-09-05 20:31:52 +00:00
nodejs = nodejs_18;
src = fetchFromGitHub {
owner = "derhuerst";
repo = pname;
rev = version;
2024-01-29 15:28:35 +00:00
hash = "sha256-guiAtPOvU/yqspq+G+mTSIFqBp6Kl0JZBPfjPC+ZM1g=";
2023-09-05 20:31:52 +00:00
};
2024-01-29 15:28:35 +00:00
npmDepsHash = "sha256-lJT344HpHJFN3QO6kVAj1NhRFTwS+EVkR0ePbtIguFo=";
2023-09-05 20:31:52 +00: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 21:09:35 +00:00
mainProgram = "db-rest";
2023-09-05 20:31:52 +00:00
};
}