11 lines
320 B
Nix
11 lines
320 B
Nix
|
{ pkgs, ... }:
|
||
|
{ name, source }:
|
||
|
let
|
||
|
yarn2nix = (import (fetchTarball "https://github.com/joepie91/yarn2nix/archive/patch/remove-no-patch.tar.gz") { inherit pkgs; });
|
||
|
in yarn2nix.mkYarnPackage {
|
||
|
name = name;
|
||
|
src = source;
|
||
|
packageJSON = "${source}/package.json";
|
||
|
yarnLock = "${source}/yarn.lock";
|
||
|
}
|