diff --git a/pkgs/build-support/upstream-updater/update-walker-service-specific.sh b/pkgs/build-support/upstream-updater/update-walker-service-specific.sh index 234f27ff1d10..4f3a7110346e 100644 --- a/pkgs/build-support/upstream-updater/update-walker-service-specific.sh +++ b/pkgs/build-support/upstream-updater/update-walker-service-specific.sh @@ -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.]+/$' +} diff --git a/pkgs/tools/graphics/asymptote/default.nix b/pkgs/tools/graphics/asymptote/default.nix index e9baac43cbdd..6a2b799f2b4e 100644 --- a/pkgs/tools/graphics/asymptote/default.nix +++ b/pkgs/tools/graphics/asymptote/default.nix @@ -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 diff --git a/pkgs/tools/graphics/asymptote/src-for-default.nix b/pkgs/tools/graphics/asymptote/src-for-default.nix deleted file mode 100644 index 277393283abb..000000000000 --- a/pkgs/tools/graphics/asymptote/src-for-default.nix +++ /dev/null @@ -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"; -} diff --git a/pkgs/tools/graphics/asymptote/src-info-for-default.nix b/pkgs/tools/graphics/asymptote/src-info-for-default.nix deleted file mode 100644 index dbfd064f51a1..000000000000 --- a/pkgs/tools/graphics/asymptote/src-info-for-default.nix +++ /dev/null @@ -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"''; -}