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 , fetchurl 3 , dbus 4 , zlib, fontconfig 5 , libX11, libxcb, libXau, libXdmcp, freetype, libbsd 6 }: 7 8 with stdenv.lib; 9 let 10 libPath = makeLibraryPath 11 - [ stdenv.cc.cc dbus libX11 zlib libX11 libxcb libXau libXdmcp freetype fontconfig libbsd ]; 12 13 - version = "2016-1-17"; 14 15 mainbin = "SoulseekQt-" + (version) +"-"+ (if stdenv.is64bit then "64bit" else "32bit"); 16 srcs = { 17 - "i686-linux" = fetchurl { 18 - url = "https://www.dropbox.com/s/kebk1b5ib1m3xxw/${mainbin}.tgz"; 19 - sha256 = "0r9rhnfslkgbw3l7fnc0rcfqjh58amgh5p33kwam0qvn1h1frnir"; 20 - }; 21 - 22 "x86_64-linux" = fetchurl { 23 - url = "https://www.dropbox.com/s/7qh902qv2sxyp6p/${mainbin}.tgz"; 24 - sha256 = "05l3smpdvw8xdhv4v8a28j0yi1kvzhrha2ck23g4bl7x9wkay4cc"; 25 }; 26 }; 27 28 in stdenv.mkDerivation rec { 29 30 name = "soulseekqt-${version}"; 31 inherit version; 32 src = srcs."${stdenv.system}" or (throw "unsupported system: ${stdenv.system}"); 33 34 - sourceRoot = "."; 35 - buildPhase = ":"; # nothing to build 36 37 installPhase = '' 38 - mkdir -p $out/bin 39 - cp ${mainbin} $out/bin/soulseekqt 40 ''; 41 42 fixupPhase = '' ··· 50 homepage = http://www.soulseekqt.net; 51 license = licenses.unfree; 52 maintainers = [ maintainers.genesis ]; 53 - platforms = [ "i686-linux" "x86_64-linux" ]; 54 }; 55 }
··· 2 , fetchurl 3 , dbus 4 , zlib, fontconfig 5 + , qtbase, qtmultimedia 6 + , libjson, libgpgerror 7 , libX11, libxcb, libXau, libXdmcp, freetype, libbsd 8 + , pythonPackages, squashfsTools, makeDesktopItem 9 }: 10 11 with stdenv.lib; 12 let 13 libPath = makeLibraryPath 14 + [ stdenv.cc.cc qtbase qtmultimedia dbus libX11 zlib libX11 libxcb libXau libXdmcp freetype fontconfig libbsd libjson libgpgerror]; 15 16 + version = "2018-1-30"; 17 18 mainbin = "SoulseekQt-" + (version) +"-"+ (if stdenv.is64bit then "64bit" else "32bit"); 19 srcs = { 20 "x86_64-linux" = fetchurl { 21 + url = "https://www.dropbox.com/s/0vi87eef3ooh7iy/${mainbin}.tgz"; 22 + sha256 = "0d1cayxr1a4j19bc5a3qp9pg22ggzmd55b6f5av3lc6lvwqqg4w6"; 23 }; 24 }; 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 + 36 in stdenv.mkDerivation rec { 37 38 name = "soulseekqt-${version}"; 39 inherit version; 40 src = srcs."${stdenv.system}" or (throw "unsupported system: ${stdenv.system}"); 41 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 + ''; 52 53 installPhase = '' 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 58 ''; 59 60 fixupPhase = '' ··· 68 homepage = http://www.soulseekqt.net; 69 license = licenses.unfree; 70 maintainers = [ maintainers.genesis ]; 71 + platforms = [ "x86_64-linux" ]; 72 }; 73 }
+1 -1
pkgs/top-level/all-packages.nix
··· 18407 inherit (pkgs.vamp) vampSDK; 18408 }; 18409 18410 - soulseekqt = callPackage ../applications/networking/p2p/soulseekqt { }; 18411 18412 sox = callPackage ../applications/misc/audio/sox { 18413 enableLame = config.sox.enableLame or false;
··· 18407 inherit (pkgs.vamp) vampSDK; 18408 }; 18409 18410 + soulseekqt = libsForQt5.callPackage ../applications/networking/p2p/soulseekqt { }; 18411 18412 sox = callPackage ../applications/misc/audio/sox { 18413 enableLame = config.sox.enableLame or false;