11 stdenv.mkDerivation rec {
15 src = fetchFromGitHub {
16 owner = "NerdWalletOSS";
19 hash = "sha256-LY8Vde4YpGuKnQ5UnSOpsQDY7AOyZRziUrfZb5dRiX4=";
22 offlineCache = fetchYarnDeps {
23 yarnLock = "${src}/yarn.lock";
24 hash = "sha256-tJXJ8ePr5ArAV+0JcuJsTo/B2PUcgsXfZrSDCpna/9k=";
37 export HOME=$(mktemp -d)
38 yarn config --offline set yarn-offline-mirror "$offlineCache"
39 fixup-yarn-lock yarn.lock
40 yarn --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive install
41 patchShebangs node_modules
57 yarn --offline --production install
59 mkdir -p "$out/lib/node_modules/@nerdwallet/shepherd"
60 cp -r . "$out/lib/node_modules/@nerdwallet/shepherd"
62 makeWrapper "${nodejs}/bin/node" "$out/bin/shepherd" \
63 --add-flags "$out/lib/node_modules/@nerdwallet/shepherd/lib/cli.js"
69 changelog = "https://github.com/NerdWalletOSS/shepherd/blob/${src.rev}/CHANGELOG.md";
70 description = "Utility for applying code changes across many repositories";
71 homepage = "https://github.com/NerdWalletOSS/shepherd";
72 license = lib.licenses.asl20;
73 mainProgram = "shepherd";
74 maintainers = with lib.maintainers; [ dbirks ];
75 platforms = lib.platforms.all;