status-react/nix/deps/nodejs/default.nix

15 lines
439 B
Nix

{ lib, yarn2nix-moretea }:
let
version = lib.fileContents ../../../VERSION;
yarnLock = ../../../yarn.lock;
packageJSON = ../../../package.json;
packageJSONContent = lib.importJSON packageJSON;
in
# Create a yarn package for our project that contains all the dependecies.
yarn2nix-moretea.mkYarnModules rec {
pname = "status-react";
name = "${pname}-node-deps-${version}";
inherit version packageJSON yarnLock;
}