mir,mir_2_15: Fix builds, modernise & fix VM tests (#374873)
[NixPkgs.git] / pkgs / by-name / pa / patch-package / package.nix
blob7260ca50f8880ff906428768cb030f840eb0d473
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   fetchYarnDeps,
6   yarnConfigHook,
7   yarnBuildHook,
8   yarnInstallHook,
9   nodejs,
10   nix-update-script,
13 stdenv.mkDerivation (finalAttrs: {
14   pname = "patch-package";
15   version = "8.0.0";
17   src = fetchFromGitHub {
18     owner = "ds300";
19     repo = "patch-package";
20     rev = "v${finalAttrs.version}";
21     hash = "sha256-QuCgdQGqy27wyLUI6w6p8EWLn1XA7QbkjpLJwFXSex8=";
22   };
24   yarnOfflineCache = fetchYarnDeps {
25     yarnLock = "${finalAttrs.src}/yarn.lock";
26     hash = "sha256-WF9gJkj4wyrBeGPIzTOw3nG6Se7tFb0YLcAM8Uv9YNI=";
27   };
29   nativeBuildInputs = [
30     yarnConfigHook
31     yarnBuildHook
32     yarnInstallHook
33     nodejs
34   ];
36   passthru.updateScript = nix-update-script { };
38   meta = {
39     description = "Fix broken node modules instantly";
40     mainProgram = "patch-package";
41     homepage = "https://github.com/ds300/patch-package";
42     license = lib.licenses.mit;
43     maintainers = with lib.maintainers; [ pyrox0 ];
44   };