Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmm: Add overrideDefaultFrontmatter #49

Merged
merged 1 commit into from
Dec 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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