libktorrent: 2.0.1 -> 2.1

+16 -8
+16 -8
pkgs/development/libraries/libktorrent/default.nix
··· 3 3 , boost, gmp, qca-qt5, libgcrypt 4 4 }: 5 5 6 - stdenv.mkDerivation rec { 7 - name = "libktorrent-2.0.1"; 6 + let 7 + mainVersion = "5.1"; 8 + 9 + in stdenv.mkDerivation rec { 10 + name = "libktorrent-2.1"; 8 11 9 12 src = fetchurl { 10 - url = http://download.kde.org/stable/ktorrent/5.0/libktorrent-2.0.1.tar.xz; 11 - sha256 = "0hiz4wm8jkymp24r6f1g8svj3pw9qspbjajf512m3j8s3bhrw3f7"; 13 + url = "mirror://kde/stable/ktorrent/${mainVersion}/${name}.tar.xz"; 14 + sha256 = "0vz2dwc4xd80q56g6r5bx5wqdl9fxcibxmw2irahqhbkxk7drvry"; 12 15 }; 13 16 14 17 outputs = [ "out" "dev" ]; 15 18 16 19 nativeBuildInputs = [ cmake extra-cmake-modules ]; 20 + 17 21 buildInputs = [ karchive kcrash ki18n kio solid qca-qt5 libgcrypt ]; 18 22 19 23 propagatedBuildInputs = [ gmp boost ]; 20 24 21 25 enableParallelBuilding = true; 22 26 23 - meta = { 27 + passthru = { 28 + inherit mainVersion; 29 + }; 30 + 31 + meta = with stdenv.lib; { 24 32 description = "A BitTorrent library used by KTorrent"; 25 - homepage = https://www.kde.org/applications/internet/ktorrent/; 26 - maintainers = [ stdenv.lib.maintainers.eelco ]; 27 - platforms = stdenv.lib.platforms.linux; 33 + homepage = https://www.kde.org/applications/internet/ktorrent/; 34 + maintainers = with maintainers; [ eelco ]; 35 + platforms = platforms.linux; 28 36 }; 29 37 }