···398 });
399400 yarn2nix = mkYarnPackage {
401- src = lib.fileset.toSource {
402- root = ./.;
403- fileset = lib.fileset.unions [
404- ./bin
405- ./lib
406- ./package.json
407- ./yarn.lock
408- ];
409- };
410411 # yarn2nix is the only package that requires the yarnNix option.
412 # All the other projects can auto-generate that file.
···415 # Using the filter above and importing package.json from the filtered
416 # source results in an error in restricted mode. To circumvent this,
417 # we import package.json from the unfiltered source
418- packageJSON = ./package.json;
419420 yarnFlags = defaultYarnFlags ++ [ "--ignore-scripts" "--production=true" ];
421···446 mkdir -p $out/lib
447 mkdir -p $out/bin
448449- cp ${./lib/urlToName.js} $out/lib/urlToName.js
450 cp ${./internal/fixup_yarn_lock.js} $out/bin/fixup_yarn_lock
451452 patchShebangs $out
···398 });
399400 yarn2nix = mkYarnPackage {
401+ src = ./yarn2nix;
00000000402403 # yarn2nix is the only package that requires the yarnNix option.
404 # All the other projects can auto-generate that file.
···407 # Using the filter above and importing package.json from the filtered
408 # source results in an error in restricted mode. To circumvent this,
409 # we import package.json from the unfiltered source
410+ packageJSON = ./yarn2nix/package.json;
411412 yarnFlags = defaultYarnFlags ++ [ "--ignore-scripts" "--production=true" ];
413···438 mkdir -p $out/lib
439 mkdir -p $out/bin
440441+ cp ${./yarn2nix/lib/urlToName.js} $out/lib/urlToName.js
442 cp ${./internal/fixup_yarn_lock.js} $out/bin/fixup_yarn_lock
443444 patchShebangs $out