about summary refs log tree commit diff
path: root/pkgs/applications/networking/irc/quassel
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2016-03-22 12:08:45 +0000
committerzimbatm <zimbatm@zimbatm.com>2016-03-22 12:10:22 +0000
commit23b9d037dee4b847b90697bbcc1235d1847473ba (patch)
tree5f6c6718ea05a92a26f9bf16cf4aafcef6e39ba6 /pkgs/applications/networking/irc/quassel
parent3f909d8f646e3ab4d50b4c076a08edf34718f053 (diff)
quassel: fix sources
Fixes changes after #14080 where the updated hash was missing.

Put the source in a common file so there is only one place to update.
Diffstat (limited to 'pkgs/applications/networking/irc/quassel')
-rw-r--r--pkgs/applications/networking/irc/quassel/default.nix8
-rw-r--r--pkgs/applications/networking/irc/quassel/qt-5.nix16
-rw-r--r--pkgs/applications/networking/irc/quassel/source.nix9
3 files changed, 13 insertions, 20 deletions
diff --git a/pkgs/applications/networking/irc/quassel/default.nix b/pkgs/applications/networking/irc/quassel/default.nix
index 0c89b002f47c0..f48309d0b0498 100644
--- a/pkgs/applications/networking/irc/quassel/default.nix
+++ b/pkgs/applications/networking/irc/quassel/default.nix
@@ -22,17 +22,13 @@ assert !buildClient -> !withKDE; # KDE is used by the client only
 
 let
   edf = flag: feature: [("-D" + feature + (if flag then "=ON" else "=OFF"))];
+  source = import ./source.nix { inherit fetchurl; };
 
 in with stdenv; mkDerivation rec {
+  inherit (source) src version;
 
-  version = "0.12.3";
   name = "quassel${tag}-${version}";
 
-  src = fetchurl {
-    url = "http://quassel-irc.org/pub/quassel-${version}.tar.bz2";
-    sha256 = "15vqjiw38mifvnc95bhvy0zl23xxldkwg2byx9xqbyw8rfgggmkb";
-  };
-
   enableParallelBuilding = true;
 
   buildInputs =
diff --git a/pkgs/applications/networking/irc/quassel/qt-5.nix b/pkgs/applications/networking/irc/quassel/qt-5.nix
index f401cace06ec7..c80624ac0510f 100644
--- a/pkgs/applications/networking/irc/quassel/qt-5.nix
+++ b/pkgs/applications/networking/irc/quassel/qt-5.nix
@@ -33,25 +33,13 @@ assert !buildClient -> !withKDE; # KDE is used by the client only
 
 let
   edf = flag: feature: [("-D" + feature + (if flag then "=ON" else "=OFF"))];
+  source = import ./source.nix { inherit fetchurl; };
 
 in with stdenv; mkDerivation rec {
+  inherit (source) src version;
 
-  version = "0.12.3";
   name = "quassel${tag}-${version}";
 
-  src = fetchurl {
-    url = "http://quassel-irc.org/pub/quassel-${version}.tar.bz2";
-    sha256 = "15vqjiw38mifvnc95bhvy0zl23xxldkwg2byx9xqbyw8rfgggmkb";
-  };
-
-  patches = [
-    # fix build with Qt 5.5
-    (fetchurl {
-      url = "https://github.com/quassel/quassel/commit/078477395aaec1edee90922037ebc8a36b072d90.patch";
-      sha256 = "1njwnay7pjjw0g7m0x5cwvck8xcznc7jbdfyhbrd121nc7jgpbc5";
-    })
-  ];
-
   enableParallelBuilding = true;
 
   buildInputs =
diff --git a/pkgs/applications/networking/irc/quassel/source.nix b/pkgs/applications/networking/irc/quassel/source.nix
new file mode 100644
index 0000000000000..17d12b575d75b
--- /dev/null
+++ b/pkgs/applications/networking/irc/quassel/source.nix
@@ -0,0 +1,9 @@
+{ fetchurl }:
+
+rec {
+  version = "0.12.3";
+  src = fetchurl {
+    url = "http://quassel-irc.org/pub/quassel-${version}.tar.bz2";
+    sha256 = "0d6lwf6qblj1ia5j9mjy112zrmpbbg9mmxgscbgxiqychldyjgjd";
+  };
+}