aboutsummaryrefslogtreecommitdiff
path: root/pkgs/peerflix/default.nix
blob: 1fb59d2db114ee3c2e22126a8f4baf92b5139161 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  buildNpmPackage,
  fetchzip,
  source,
}:
buildNpmPackage {
  inherit (source) version;

  pname = "peerflix";

  src = fetchzip {
    inherit (source) url sha256;
  };

  npmDepsHash = "sha256-23A6NUmZsNhW3CPiE1xRC43t1AVYQZ5SgDmcxQ6cHrE=";
  npmPackFlags = [ "--ignore-scripts" ];
  NODE_OPTIONS = "--openssl-legacy-provider";
  postPatch = "ln -s ${./package-lock.json} package-lock.json";
  dontNpmBuild = true;
}