forked from fluidattacks/makes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(build) fluidattacks#1099 licensing builtin with reuse
- Create `testLicense` builtin with reuse. - Add job to dev pipeline Signed-off-by: Robin Hafid Quintero Lopez <rohaquinlop301@gmail.com>
- Loading branch information
1 parent
d15f787
commit 835af65
Showing
8 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -251,6 +251,7 @@ | |
}; | ||
}; | ||
}; | ||
testLicense = {}; | ||
testPython = { | ||
example = { | ||
python = "3.11"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
__nixpkgs__, | ||
makeScript, | ||
... | ||
}: | ||
makeScript { | ||
name = "test-license"; | ||
entrypoint = ./entrypoint.sh; | ||
searchPaths.bin = [ | ||
__nixpkgs__.git | ||
__nixpkgs__.reuse | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# shellcheck shell=bash | ||
|
||
function main { | ||
if ! reuse lint; then | ||
error "Some files are not properly licensed. Please adapt .reuse/dep5" | ||
fi | ||
} | ||
|
||
main "${@}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
testLicense, | ||
... | ||
}: { | ||
config, | ||
lib, | ||
... | ||
}: { | ||
options = { | ||
testLicense = {}; | ||
}; | ||
config = { | ||
outputs = { | ||
"/testLicense" = testLicense; | ||
}; | ||
}; | ||
} |