Unverified Commit 4fb342ee authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

yeoman: unbreak package (#390136)

parents 15d0abd1 51904f22
Loading
Loading
Loading
Loading
+18492 −0

File added.

Preview size limit exceeded, changes collapsed.

+10 −2
Original line number Diff line number Diff line
{
  lib,
  buildNpmPackage,
  fetchNpmDeps,
  fetchFromGitHub,
}:

@@ -15,12 +16,19 @@ buildNpmPackage rec {
    hash = "sha256-twV5vmQ5loR8j9guf0w5DG4sU4BQYz22GjqjsUkqE4U=";
  };

  npmDepsHash = "sha256-QmJDtI2PR829owY0c7DjjIwm7+TK3M/YojD0kAv1ETY=";
  # needed to fix https://github.com/NixOS/nixpkgs/issues/367282
  # once yo gets a new lockfile upstream, we can go back to regular
  # `npmDepsHash` and remove the `postPatch`.
  npmDeps = fetchNpmDeps {
    src = ./.;
    hash = "sha256-Fjt9/341lXW7YvyZVyAUMMcDITwyQxyG5WBgR9lJUy4=";
  };

  postPatch = "cp -v ${./package-lock.json} ./package-lock.json";

  dontNpmBuild = true;

  meta = {
    broken = true; # Cannot find package 'slash'
    description = "CLI tool for running Yeoman generators";
    homepage = "https://github.com/yeoman/yo";
    license = lib.licenses.bsd2;