Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
839 B
Nix
41 lines
839 B
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
nodejs,
|
|
nix-update-script,
|
|
nixosTests,
|
|
}:
|
|
buildNpmPackage rec {
|
|
pname = "db-rest";
|
|
version = "6.1.0";
|
|
|
|
inherit nodejs;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "derhuerst";
|
|
repo = "db-rest";
|
|
rev = version;
|
|
hash = "sha256-1iJ26l6C6GevNkoDVMztPHiH3YsutJa3xWAsfYvgR9U=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-ELVVsysNjkXuX4i6i5P3irn6twVDu6YiPYqy2hbIlIs=";
|
|
|
|
preConfigure = ''
|
|
patchShebangs ./build/index.js
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
passthru.tests = {
|
|
inherit (nixosTests) db-rest;
|
|
};
|
|
|
|
meta = {
|
|
description = "Clean REST API wrapping around the Deutsche Bahn API";
|
|
homepage = "https://v6.db.transport.rest/";
|
|
license = lib.licenses.isc;
|
|
maintainers = with lib.maintainers; [ marie ];
|
|
mainProgram = "db-rest";
|
|
};
|
|
}
|