yarn2nix: allow setting doDist by calling packages

This commit is contained in:
Sumner Evans 2022-05-31 09:10:16 -06:00
parent 14bc4210b7
commit 093a003639
No known key found for this signature in database
GPG key ID: 8904527AB50022FD
5 changed files with 5 additions and 17 deletions

View file

@ -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

View file

@ -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";

View file

@ -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

View file

@ -359,7 +359,7 @@ in rec {
runHook postInstall
'';
doDist = true;
doDist = attrs.doDist or true;
distPhase = attrs.distPhase or ''
# pack command ignores cwd option

View file

@ -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}";