Merge pull request #30 from nicknovitski/passthru-yarn
Add passthru yarn derivation
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# This file is generated by running "yarn install" inside your project.
|
||||
# Manual changes might be lost - proceed with caution!
|
||||
|
||||
{ lib, nodejs, stdenv, fetchurl, writeText, git, cacert }:
|
||||
{ lib, nodejs, stdenv, fetchurl, writeText, git, cacert, writeShellApplication }:
|
||||
{ src, overrideAttrs ? null, ... } @ args:
|
||||
|
||||
let
|
||||
@@ -151,6 +151,13 @@ let
|
||||
|
||||
passthru = {
|
||||
inherit nodejs;
|
||||
yarn = writeShellApplication {
|
||||
name = "yarn";
|
||||
runtimeInputs = [ nodejs ];
|
||||
text = ''
|
||||
${yarnPath} --cwd ${project}/libexec/${project.name} "$@"
|
||||
'';
|
||||
};
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user