Skip to content

Commit

Permalink
cmm: Add overrideDefaultFrontmatter
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Dec 23, 2023
1 parent 2fff270 commit 54a89f3
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions hacking/cargo-manifest-management/manifest-scope.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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; [
Expand All @@ -70,6 +81,10 @@ in rec {
nspin = "Nick Spinale <[email protected]>";
};

copyrightLines = {
coliasgroup = "Copyright 2023, Colias Group, LLC";
};

versions = {
addr2line = "0.21.0";
anyhow = "1.0.66";
Expand Down

0 comments on commit 54a89f3

Please sign in to comment.