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

40 lines
1.0 KiB
Nix
Raw Permalink Normal View History

2025-05-03 13:53:11 +03:00
{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
}:
buildNpmPackage (finalAttrs: {
pname = "corestore";
2025-08-03 15:18:38 +02:00
version = "7.4.5";
2025-05-03 13:53:11 +03:00
src = fetchFromGitHub {
owner = "holepunchto";
repo = "corestore";
tag = "v${finalAttrs.version}";
2025-08-03 15:18:38 +02:00
hash = "sha256-wuf7bPxHuzic2B4HCH7emM1+jc7gw+l5Sm/LCYnpvs4=";
2025-05-03 13:53:11 +03:00
};
2025-08-03 15:18:38 +02:00
npmDepsHash = "sha256-hQYvQeTwlIWImdNhgpnJjDC24Fx4G0eST7tptWV1Xgw=";
2025-05-03 13:53:11 +03:00
dontNpmBuild = true;
# ERROR: Missing package-lock.json from src
2025-08-03 15:18:38 +02:00
# Upstream doesn't want to maintain a lockfile in their repo: https://github.com/holepunchto/corestore/issues/119
2025-05-03 13:53:11 +03:00
# Copy vendored package-lock.json to src via postPatch
postPatch = ''
cp ${./package-lock.json} ./package-lock.json
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Simple corestore that wraps a random-access-storage module";
homepage = "https://github.com/holepunchto/corestore";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ themadbit ];
teams = with lib.teams; [ ngi ];
};
})