Skip to content

Commit a23e393

Browse files
committed
fix: don't error when crate is missing description
1 parent bbbbdc6 commit a23e393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crate2nix/templates/nix/crate2nix/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ rec {
455455
assert (lib.assertMsg (crateConfig ? sha256) "Missing sha256 for ${name}");
456456
crateConfig.sha256;
457457
});
458-
meta = {
458+
meta = lib.optionalAttrs (crateConfig ? description) {
459459
inherit (crateConfig) description;
460460
};
461461
inherit

0 commit comments

Comments
 (0)