8000 Add attributes: sourceforge variant for `source_provenance`, `description` by twitchyliquid64 · Pull Request #72 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content
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
11 changes: 11 additions & 0 deletions crates/stdlib/minimal-ncl/attr_classes.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ let source_provenance_gnu = {
name | String,
}
in
let source_provenance_sourceforge = {
category = 'Sourceforge,
name | String | doc "The name of the project, typically first component of the URL path.",
}
in
let source_provenance_github = {
category = 'GithubRepo,
owner | String,
Expand Down Expand Up @@ -40,6 +45,11 @@ in
desc = "When set, the source backing this package is not publically available.",
validate = Bool,
},
description = {
name = "description",
desc = "A short description of the function of the software.",
validate = String,
},

env_dir_mappings = {
name = "environment directory mappings",
Expand Down Expand Up @@ -79,6 +89,7 @@ in
match {
{category = 'GnuProject, ..} => std.contract.check source_provenance_gnu label value,
{category = 'GithubRepo, ..} => std.contract.check source_provenance_github label value,
{category = 'Sourceforge, ..} => std.contract.check source_provenance_sourceforge label value,
_ => 'Error {
message = "source_provenance value had invalid/unknown category",
},
Expand Down
Loading
0