yarn2nix: allow setting doDist by calling packages
This commit is contained in:
parent
14bc4210b7
commit
093a003639
5 changed files with 5 additions and 17 deletions
|
@ -92,10 +92,7 @@ mkYarnPackage rec {
|
|||
'';
|
||||
|
||||
# Do not attempt generating a tarball for element-desktop again.
|
||||
# note: `doDist = false;` does not work.
|
||||
distPhase = ''
|
||||
true
|
||||
'';
|
||||
doDist = false;
|
||||
|
||||
# The desktop item properties should be kept in sync with data from upstream:
|
||||
# https://github.com/vector-im/element-desktop/blob/develop/package.json
|
||||
|
|
|
@ -72,10 +72,7 @@ mkYarnPackage rec {
|
|||
'';
|
||||
|
||||
# Do not attempt generating a tarball for element-web again.
|
||||
# note: `doDist = false;` does not work.
|
||||
distPhase = ''
|
||||
true
|
||||
'';
|
||||
doDist = false;
|
||||
|
||||
meta = {
|
||||
description = "A glossy Matrix collaboration client for the web";
|
||||
|
|
|
@ -72,10 +72,7 @@ in
|
|||
'';
|
||||
|
||||
# Do not attempt generating a tarball for micropad again.
|
||||
# note: `doDist = false;` does not work.
|
||||
distPhase = ''
|
||||
true
|
||||
'';
|
||||
doDist = false;
|
||||
|
||||
# The desktop item properties should be kept in sync with data from upstream:
|
||||
# https://github.com/MicroPad/MicroPad-Electron/blob/master/package.json
|
||||
|
|
|
@ -359,7 +359,7 @@ in rec {
|
|||
runHook postInstall
|
||||
'';
|
||||
|
||||
doDist = true;
|
||||
doDist = attrs.doDist or true;
|
||||
|
||||
distPhase = attrs.distPhase or ''
|
||||
# pack command ignores cwd option
|
||||
|
|
|
@ -62,10 +62,7 @@ in mkYarnPackage rec {
|
|||
'';
|
||||
|
||||
# don't generate the dist tarball
|
||||
# (`doDist = false` does not work in mkYarnPackage)
|
||||
distPhase = ''
|
||||
true
|
||||
'';
|
||||
doDist = false;
|
||||
|
||||
passthru = {
|
||||
nodeAppDir = "libexec/${pname}/deps/${pname}";
|
||||
|
|
Loading…
Reference in a new issue