From 54a89f349588e01fdf2ee9f1738491fb1fc86319 Mon Sep 17 00:00:00 2001 From: Nick Spinale Date: Sat, 23 Dec 2023 01:32:01 -0500 Subject: [PATCH] cmm: Add overrideDefaultFrontmatter Signed-off-by: Nick Spinale --- .../manifest-scope.nix | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/hacking/cargo-manifest-management/manifest-scope.nix b/hacking/cargo-manifest-management/manifest-scope.nix index 48947a114..cc01f2b9d 100644 --- a/hacking/cargo-manifest-management/manifest-scope.nix +++ b/hacking/cargo-manifest-management/manifest-scope.nix @@ -31,6 +31,15 @@ in rec { mkDefaultFrontmatterWithReuseArgs = args: mkReuseFrontmatter args + defaultNoteFrontmatter; + overrideDefaultFrontmatter = + { copyrightLines ? defaultReuseFrontmatterArgs.copyrightLines ++ extraCopyrightLines + , extraCopyrightLines ? [] + , licenseID ? defaultReuseFrontmatterArgs.licenseID + }: + mkDefaultFrontmatterWithReuseArgs { + inherit copyrightLines licenseID; + }; + defaultNoteFrontmatter = '' # # This file is generated from './Cargo.nix'. You can edit this file directly @@ -54,12 +63,14 @@ in rec { # REUSE-IgnoreEnd defaultReuseFrontmatterArgs = { - copyrightLines = [ - "Copyright 2023, Colias Group, LLC" - ]; + copyrightLines = defaultCopyrightLines; licenseID = defaultLicense; }; + defaultCopyrightLines = with copyrightLines; [ + coliasgroup + ]; + defaultLicense = "BSD-2-Clause"; defaultAuthors = with authors; [ @@ -70,6 +81,10 @@ in rec { nspin = "Nick Spinale "; }; + copyrightLines = { + coliasgroup = "Copyright 2023, Colias Group, LLC"; + }; + versions = { addr2line = "0.21.0"; anyhow = "1.0.66";