forked from mirrors/nixpkgs
Update Asymptote
This commit is contained in:
parent
bb99b88e9b
commit
20b15673f4
|
@ -3,3 +3,7 @@ SF_redirect () {
|
|||
process 'http://[a-z]+[.]dl[.]sourceforge[.]net/' 'mirror://sourceforge/'
|
||||
process '[?].*' ''
|
||||
}
|
||||
|
||||
SF_version_dir () {
|
||||
version_link 'http://sourceforge.net/.+/[0-9.]+/$'
|
||||
}
|
||||
|
|
|
@ -8,7 +8,15 @@ a @ {
|
|||
|
||||
...}:
|
||||
let
|
||||
s = import ./src-for-default.nix;
|
||||
s = # Generated upstream information
|
||||
rec {
|
||||
baseName="asymptote";
|
||||
version="2.21";
|
||||
name="asymptote-2.21";
|
||||
hash="07lkj0xnxpanfscmbm30lw6j9484rlmmqpnl0mhs7nx9h2lczrjz";
|
||||
url="mirror://sourceforge/project/asymptote/2.21/asymptote-2.21.src.tgz";
|
||||
sha256="07lkj0xnxpanfscmbm30lw6j9484rlmmqpnl0mhs7nx9h2lczrjz";
|
||||
};
|
||||
buildInputs = with a; [
|
||||
freeglut ghostscriptX imagemagick fftw boehmgc
|
||||
mesa ncurses readline gsl libsigsegv python zlib
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
rec {
|
||||
version="2.20";
|
||||
name="asymptote-2.20";
|
||||
hash="0ji45v0d9jps8clsl86pvmr22acci3f0ciicmyzak6dbczqyrj80";
|
||||
url="http://downloads.sourceforge.net/project/asymptote/${version}/asymptote-${version}.src.tgz";
|
||||
advertisedUrl="http://downloads.sourceforge.net/project/asymptote/2.20/asymptote-2.20.src.tgz";
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
downloadPage = "http://sourceforge.net/projects/asymptote/files/";
|
||||
baseName = "asymptote";
|
||||
sourceRegexp = ".*[.]src[.]tgz";
|
||||
versionExtractorSedScript = ''$extractReleaseSF'';
|
||||
versionReferenceCreator = ''$(replaceAllVersionOccurences)'';
|
||||
choiceCommand = ''head -1 | sed -re "$skipRedirectSF"'';
|
||||
}
|
Loading…
Reference in a new issue