about summary refs log tree commit diff
path: root/pkgs/applications/audio/clementine
diff options
context:
space:
mode:
authorAnton-Latukha <anton.latukha@gmail.com>2019-01-27 14:03:57 +0200
committerAnton-Latukha <anton.latukha@gmail.com>2019-01-29 14:12:24 +0200
commit89f79a50aab5830dee1ed1e3cb71a7153c145fae (patch)
treec4d8ff3b3ecf46b2e8a6995a2e5db7da7ef49ce3 /pkgs/applications/audio/clementine
parent04f025a8d4d123084eef91c9bae8e5314d85fcbb (diff)
clementine: use fetchFromGitHub
Diffstat (limited to 'pkgs/applications/audio/clementine')
-rw-r--r--pkgs/applications/audio/clementine/default.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/pkgs/applications/audio/clementine/default.nix b/pkgs/applications/audio/clementine/default.nix
index a28125d24d4f0..b3a0c6377214c 100644
--- a/pkgs/applications/audio/clementine/default.nix
+++ b/pkgs/applications/audio/clementine/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, fetchpatch, boost, cmake, chromaprint, gettext, gst_all_1, liblastfm
+{ stdenv, fetchFromGitHub, fetchpatch, boost, cmake, chromaprint, gettext, gst_all_1, liblastfm
 , qt4, taglib, fftw, glew, qjson, sqlite, libgpod, libplist, usbmuxd, libmtp
 , libpulseaudio, gvfs, libcdio, libechonest, libspotify, pcre, projectm, protobuf
 , qca2, pkgconfig, sparsehash, config, makeWrapper, gst_plugins }:
@@ -11,14 +11,16 @@ let
 
   version = "1.3.1";
 
-  src = fetchurl {
-    url = https://github.com/clementine-player/Clementine/archive/1.3.1.tar.gz;
-    sha256 = "0z7k73wyz54c3020lb6x2dgw0vz4ri7wcl3vs03qdj5pk8d971gq";
+  src = fetchFromGitHub {
+    owner = "clementine-player";
+    repo = "Clementine";
+    rev = version;
+    sha256 = "0i3jkfs8dbfkh47jq3cnx7pip47naqg7w66vmfszk4d8vj37j62j";
   };
 
   patches = [
     ./clementine-spotify-blob.patch
-    # Required so as to avoid adding libspotify as a build dependency (as it is 
+    # Required so as to avoid adding libspotify as a build dependency (as it is
     # unfree and thus would prevent us from having a free package).
     ./clementine-spotify-blob-remove-from-build.patch
     (fetchpatch {