nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 45 lines 964 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchYarnDeps, 6 yarnConfigHook, 7 yarnBuildHook, 8 yarnInstallHook, 9 nodejs, 10 nix-update-script, 11}: 12 13stdenv.mkDerivation (finalAttrs: { 14 pname = "patch-package"; 15 version = "8.0.0"; 16 17 src = fetchFromGitHub { 18 owner = "ds300"; 19 repo = "patch-package"; 20 rev = "v${finalAttrs.version}"; 21 hash = "sha256-QuCgdQGqy27wyLUI6w6p8EWLn1XA7QbkjpLJwFXSex8="; 22 }; 23 24 yarnOfflineCache = fetchYarnDeps { 25 yarnLock = "${finalAttrs.src}/yarn.lock"; 26 hash = "sha256-WF9gJkj4wyrBeGPIzTOw3nG6Se7tFb0YLcAM8Uv9YNI="; 27 }; 28 29 nativeBuildInputs = [ 30 yarnConfigHook 31 yarnBuildHook 32 yarnInstallHook 33 nodejs 34 ]; 35 36 passthru.updateScript = nix-update-script { }; 37 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 }; 45})