summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-05-30 13:54:46 +0200
committeraszlig <aszlig@redmoonstudios.org>2016-06-04 16:38:57 +0200
commitc683abab6041f56d019bd6a3083397aa9bc510dc (patch)
tree070e78e664d4cc0af6febfbc7cbfd10ae063a6c2
parent268fedbda33a0afa056eac97c6e04ccd0d21027f (diff)
gwenhywfar: 4.11.1 -> 4.15.3
Upstream changelog for version 4.11 through 4.12 doesn't seem to be available anymore and the change summaries from the project page are in German, but here's a comparison from a GitHub mirror I've found: https://github.com/cstim/gwenhywfar/compare/4.11.1beta...4055683538b6 I've shortened the URL to not include the file name in the URL itself because we use the name attribute in fetchurl to force the name anyway. A quick way to find out about the upstream download URLs is: curl 'http://www.aquamaniac.de/sites/download/packages.php?package=01&showall=1' \ | sed -nre 's/^.*<a\>.*\<href="([^"]+)".*/\1/p' Signed-off-by: aszlig <aszlig@redmoonstudios.org> Cc: @cillianderoiste, @urkud
-rw-r--r--pkgs/development/libraries/gwenhywfar/default.nix14
1 files changed, 10 insertions, 4 deletions
diff --git a/pkgs/development/libraries/gwenhywfar/default.nix b/pkgs/development/libraries/gwenhywfar/default.nix
index b6cd2e54768f..8cec26139dea 100644
--- a/pkgs/development/libraries/gwenhywfar/default.nix
+++ b/pkgs/development/libraries/gwenhywfar/default.nix
@@ -1,12 +1,18 @@
{ stdenv, fetchurl, gnutls, gtk, libgcrypt, pkgconfig, qt4 }:
stdenv.mkDerivation rec {
- name = "gwenhywfar-4.11.1";
+ name = "gwenhywfar-${version}";
- src = fetchurl {
- url = "http://www2.aquamaniac.de/sites/download/download.php?package=01&release=78&file=01&dummy=${name}.tar.gz";
+ version = "4.15.3";
+
+ src = let
+ releaseNum = 201; # Change this on update
+ qstring = "package=01&release=${toString releaseNum}&file=01";
+ mkURLs = map (base: "${base}/sites/download/download.php?${qstring}");
+ in fetchurl {
name = "${name}.tar.gz";
- sha256 = "0ay79vc03jsw762nax204g112yg5sak340g31bm4hm93q69aiv2b";
+ urls = mkURLs [ "http://www.aquamaniac.de" "http://www2.aquamaniac.de" ];
+ sha256 = "0fp67s932x66xfljb26zbrn8ambbc5y5c3hllr6l284nr63qf3ka";
};
propagatedBuildInputs = [ gnutls libgcrypt ];