summary refs log tree commit diff
path: root/pkgs/build-support/upstream-updater/design.txt
blob: 407f9e5bc1b074d63b5e218c5c8643cb595170af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
baseName (default = unnamed-package)
sourceRegexp (default = '.*[.]tar[.].*')
choiceCommand (default = 'head -1')
versionExtractorSedScript (default = 's/.*-([0-9.]+)[.].*/\1/')
versionReferenceCreator (default = 's/-([0-9.]+)[.]/-${version}./')
mirrorSedScript (default = none)

src-for-file.nix:

advertisedUrl (its match is the check for update presence)
url
hash
version
name