Files

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

41 lines
844 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnInstallHook,
nodejs,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "asar";
version = "3.2.4";
src = fetchFromGitHub {
owner = "electron";
repo = "asar";
tag = "v${finalAttrs.version}";
hash = "sha256-12FP8VRDo1PQ+tiN4zhzkcfAx9zFs/0MU03t/vFo074=";
};
offlineCache = fetchYarnDeps {
yarnLock = "${finalAttrs.src}/yarn.lock";
hash = "sha256-/fV3hd98pl46+fgmiMH9sDQrrZgdLY1oF9c3TaIxRSg=";
};
nativeBuildInputs = [
yarnConfigHook
yarnInstallHook
nodejs
];
meta = {
description = "Simple extensive tar-like archive format with indexing";
homepage = "https://github.com/electron/asar";
license = lib.licenses.mit;
mainProgram = "asar";
maintainers = with lib.maintainers; [ xvapx ];
};
})