about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSilvan Mosberger <infinisil@icloud.com>2019-01-29 19:42:13 +0100
committerGitHub <noreply@github.com>2019-01-29 19:42:13 +0100
commitc1a44bd0dbb618e9ea707d1e3d22fa97e55db550 (patch)
tree9719897821edb137cb388dc20af9c7d0641e4e6b /pkgs
parentfb7ffda29b79ee8814a620fbb3c86e5d60b664ce (diff)
parent89f79a50aab5830dee1ed1e3cb71a7153c145fae (diff)
downloadnixlib-c1a44bd0dbb618e9ea707d1e3d22fa97e55db550.tar
nixlib-c1a44bd0dbb618e9ea707d1e3d22fa97e55db550.tar.gz
nixlib-c1a44bd0dbb618e9ea707d1e3d22fa97e55db550.tar.bz2
nixlib-c1a44bd0dbb618e9ea707d1e3d22fa97e55db550.tar.lz
nixlib-c1a44bd0dbb618e9ea707d1e3d22fa97e55db550.tar.xz
nixlib-c1a44bd0dbb618e9ea707d1e3d22fa97e55db550.tar.zst
nixlib-c1a44bd0dbb618e9ea707d1e3d22fa97e55db550.zip
Merge pull request #54692 from Anton-Latukha/fetchFromGitHub-clementine
clementine: use fetchFromGitHub
Diffstat (limited to 'pkgs')
-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 a28125d24d4f..b3a0c6377214 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 {