2009-08-23 22:10:08 +00:00
|
|
|
Next to file.nix we get src-for-file.nix
|
|
|
|
src-for-file.nix should evaluate to a flat attribute set with
|
|
|
|
string values.
|
|
|
|
It is supposed to be imported in the main expression.
|
|
|
|
In the ideal world it can export url, hash, version.
|
|
|
|
|
|
|
|
src-for-file.nix generation is directed by
|
|
|
|
src-info-for-file.nix.
|
|
|
|
|
|
|
|
Attributes:
|
|
|
|
|
|
|
|
src-info-for-file.nix:
|
|
|
|
|
|
|
|
downloadPage
|
2009-09-08 09:35:21 +00:00
|
|
|
rev (for repos)
|
2009-08-26 11:13:36 +00:00
|
|
|
baseName (default = unnamed-package)
|
2009-08-23 22:10:08 +00:00
|
|
|
sourceRegexp (default = '.*[.]tar[.].*')
|
|
|
|
choiceCommand (default = 'head -1')
|
2009-08-24 21:35:45 +00:00
|
|
|
versionExtractorSedScript (default = 's/.*-([0-9.]+)[.].*/\1/')
|
|
|
|
versionReferenceCreator (default = 's/-([0-9.]+)[.]/-${version}./')
|
2009-08-23 22:10:08 +00:00
|
|
|
mirrorSedScript (default = none)
|
|
|
|
|
|
|
|
src-for-file.nix:
|
|
|
|
|
|
|
|
advertisedUrl (its match is the check for update presence)
|
|
|
|
url
|
|
|
|
hash
|
|
|
|
version
|
2009-08-26 11:13:36 +00:00
|
|
|
name
|