morph-rc/configuration/lib/node-application.nix

11 lines
320 B
Nix
Raw Normal View History

2019-08-07 22:14:43 +02:00
{ 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";
}