soulseekqt: 2016-1-17 -> 2018-1-30 (#44460)

authored by Bignaux Ronan and committed by xeji 39ab7a07 6b0451c0

+33 -15
+32 -14
pkgs/applications/networking/p2p/soulseekqt/default.nix
··· 2 2 , fetchurl 3 3 , dbus 4 4 , zlib, fontconfig 5 + , qtbase, qtmultimedia 6 + , libjson, libgpgerror 5 7 , libX11, libxcb, libXau, libXdmcp, freetype, libbsd 8 + , pythonPackages, squashfsTools, makeDesktopItem 6 9 }: 7 10 8 11 with stdenv.lib; 9 12 let 10 13 libPath = makeLibraryPath 11 - [ stdenv.cc.cc dbus libX11 zlib libX11 libxcb libXau libXdmcp freetype fontconfig libbsd ]; 14 + [ stdenv.cc.cc qtbase qtmultimedia dbus libX11 zlib libX11 libxcb libXau libXdmcp freetype fontconfig libbsd libjson libgpgerror]; 12 15 13 - version = "2016-1-17"; 16 + version = "2018-1-30"; 14 17 15 18 mainbin = "SoulseekQt-" + (version) +"-"+ (if stdenv.is64bit then "64bit" else "32bit"); 16 19 srcs = { 17 - "i686-linux" = fetchurl { 18 - url = "https://www.dropbox.com/s/kebk1b5ib1m3xxw/${mainbin}.tgz"; 19 - sha256 = "0r9rhnfslkgbw3l7fnc0rcfqjh58amgh5p33kwam0qvn1h1frnir"; 20 - }; 21 - 22 20 "x86_64-linux" = fetchurl { 23 - url = "https://www.dropbox.com/s/7qh902qv2sxyp6p/${mainbin}.tgz"; 24 - sha256 = "05l3smpdvw8xdhv4v8a28j0yi1kvzhrha2ck23g4bl7x9wkay4cc"; 21 + url = "https://www.dropbox.com/s/0vi87eef3ooh7iy/${mainbin}.tgz"; 22 + sha256 = "0d1cayxr1a4j19bc5a3qp9pg22ggzmd55b6f5av3lc6lvwqqg4w6"; 25 23 }; 26 24 }; 27 25 26 + desktopItem = makeDesktopItem { 27 + name = "SoulseekQt"; 28 + exec = "soulseekqt"; 29 + icon = "$out/share/soulseekqt/"; 30 + comment = "Official Qt SoulSeek client"; 31 + desktopName = "SoulseekQt"; 32 + genericName = "SoulseekQt"; 33 + categories = "Network;"; 34 + }; 35 + 28 36 in stdenv.mkDerivation rec { 29 37 30 38 name = "soulseekqt-${version}"; 31 39 inherit version; 32 40 src = srcs."${stdenv.system}" or (throw "unsupported system: ${stdenv.system}"); 33 41 34 - sourceRoot = "."; 35 - buildPhase = ":"; # nothing to build 42 + dontBuild = true; 43 + 44 + buildInputs = [ pythonPackages.binwalk squashfsTools ]; 45 + 46 + # avoid usage of appimagetool 47 + unpackCmd = '' 48 + export HOME=$(pwd) # workaround for binwalk 49 + tar xvf $curSrc && binwalk --quiet \ 50 + ${mainbin}.AppImage -D 'squashfs:.squashfs:unsquashfs %e' 51 + ''; 36 52 37 53 installPhase = '' 38 - mkdir -p $out/bin 39 - cp ${mainbin} $out/bin/soulseekqt 54 + mkdir -p $out/{bin,share/soulseekqt} 55 + cd squashfs-root/ 56 + cp -R soulseek.png translations $out/share/soulseekqt 57 + cp SoulseekQt $out/bin/soulseekqt 40 58 ''; 41 59 42 60 fixupPhase = '' ··· 50 68 homepage = http://www.soulseekqt.net; 51 69 license = licenses.unfree; 52 70 maintainers = [ maintainers.genesis ]; 53 - platforms = [ "i686-linux" "x86_64-linux" ]; 71 + platforms = [ "x86_64-linux" ]; 54 72 }; 55 73 }
+1 -1
pkgs/top-level/all-packages.nix
··· 18407 18407 inherit (pkgs.vamp) vampSDK; 18408 18408 }; 18409 18409 18410 - soulseekqt = callPackage ../applications/networking/p2p/soulseekqt { }; 18410 + soulseekqt = libsForQt5.callPackage ../applications/networking/p2p/soulseekqt { }; 18411 18411 18412 18412 sox = callPackage ../applications/misc/audio/sox { 18413 18413 enableLame = config.sox.enableLame or false;