diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2009-08-23 22:10:08 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2009-08-23 22:10:08 +0000 |
commit | 5a6e313abf4b5dff7ffa740b5a6c0f4e1f0d8595 (patch) | |
tree | 6b50c4ecc63b90e7ebb03d8a225dff1d2f1140f0 /pkgs/development/libraries/webkit | |
parent | c8886f7215e0226662810e4ac1c36cb675f3dae9 (diff) |
Add an automated updater script and definitions for its use for WebKit
svn path=/nixpkgs/trunk/; revision=16816
Diffstat (limited to 'pkgs/development/libraries/webkit')
-rw-r--r-- | pkgs/development/libraries/webkit/default.nix | 9 | ||||
-rw-r--r-- | pkgs/development/libraries/webkit/src-for-default.nix | 6 | ||||
-rw-r--r-- | pkgs/development/libraries/webkit/src-info-for-default.nix | 5 |
3 files changed, 17 insertions, 3 deletions
diff --git a/pkgs/development/libraries/webkit/default.nix b/pkgs/development/libraries/webkit/default.nix index 87c35dfd359ce..67af5d3065d76 100644 --- a/pkgs/development/libraries/webkit/default.nix +++ b/pkgs/development/libraries/webkit/default.nix @@ -1,9 +1,12 @@ args : with args; -let version = lib.attrByPath ["version"] "r46809" args; in +let + s = import ./src-for-default.nix; + version = lib.attrByPath ["version"] s.version args; +in rec { src = fetchurl { - url = "http://nightly.webkit.org/files/trunk/src/WebKit-${version}.tar.bz2"; - sha256 = "12isv3rjvjfn45mgp42nsv812cmfcfrpgbgzqgf88qyldcmq0qs5"; + url = s.url; + sha256 = s.hash; }; buildInputs = [gtk atk cairo curl fontconfig freetype diff --git a/pkgs/development/libraries/webkit/src-for-default.nix b/pkgs/development/libraries/webkit/src-for-default.nix new file mode 100644 index 0000000000000..3e1c2fb472ff1 --- /dev/null +++ b/pkgs/development/libraries/webkit/src-for-default.nix @@ -0,0 +1,6 @@ +rec { + advertisedUrl="http://builds.nightly.webkit.org/files/trunk/src/WebKit-r47686.tar.bz2"; + version = "r47686"; + url="http://builds.nightly.webkit.org/files/trunk/src/WebKit-${version}.tar.bz2"; + hash = "1h1frvvp8hfv3q2drjnrpgadgin55p7nv8747kxxhdkj4gv9dzqg"; +} diff --git a/pkgs/development/libraries/webkit/src-info-for-default.nix b/pkgs/development/libraries/webkit/src-info-for-default.nix new file mode 100644 index 0000000000000..be2a68b58e250 --- /dev/null +++ b/pkgs/development/libraries/webkit/src-info-for-default.nix @@ -0,0 +1,5 @@ +{ + downloadPage = "http://nightly.webkit.org/"; + versionExtractorSedScript = "s/.*-(r[0-9]+)[.].*/\\1/"; + versionReferenceCreator = "s/-(r[0-9.]+)[.]/-\${version}./"; +} |