diff options
author | Felix Buehler <account@buehler.rocks> | 2023-02-06 21:49:02 +0100 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2023-02-13 21:52:34 +0100 |
commit | cdb39a86e0dd7cda3a057f4f4795485a5c9b9be5 (patch) | |
tree | 1fef6e55f39dab2289b68b68972ee4c9b89520f7 /pkgs/development/ruby-modules | |
parent | 7f610b4d3f6e6f695b1f5521862066c0ece79a5a (diff) |
treewide: use optionalString
Diffstat (limited to 'pkgs/development/ruby-modules')
-rw-r--r-- | pkgs/development/ruby-modules/bundled-common/default.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/development/ruby-modules/bundled-common/default.nix b/pkgs/development/ruby-modules/bundled-common/default.nix index 4672bad4ca4d2..aa903a5637c08 100644 --- a/pkgs/development/ruby-modules/bundled-common/default.nix +++ b/pkgs/development/ruby-modules/bundled-common/default.nix @@ -66,9 +66,8 @@ let name; copyIfBundledByPath = { bundledByPath ? false, ...}: - (if bundledByPath then - assert gemFiles.gemdir != null; "cp -a ${gemFiles.gemdir}/* $out/" #*/ - else "" + (lib.optionalString bundledByPath ( + assert gemFiles.gemdir != null; "cp -a ${gemFiles.gemdir}/* $out/") #*/ ); maybeCopyAll = pkgname: if pkgname == null then "" else |