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

This commit is contained in:
Bignaux Ronan 2018-08-04 17:24:52 +02:00 committed by xeji
parent 6b0451c060
commit 39ab7a0778
2 changed files with 33 additions and 15 deletions

View File

@ -2,27 +2,35 @@
, fetchurl , fetchurl
, dbus , dbus
, zlib, fontconfig , zlib, fontconfig
, qtbase, qtmultimedia
, libjson, libgpgerror
, libX11, libxcb, libXau, libXdmcp, freetype, libbsd , libX11, libxcb, libXau, libXdmcp, freetype, libbsd
, pythonPackages, squashfsTools, makeDesktopItem
}: }:
with stdenv.lib; with stdenv.lib;
let let
libPath = makeLibraryPath libPath = makeLibraryPath
[ stdenv.cc.cc dbus libX11 zlib libX11 libxcb libXau libXdmcp freetype fontconfig libbsd ]; [ stdenv.cc.cc qtbase qtmultimedia dbus libX11 zlib libX11 libxcb libXau libXdmcp freetype fontconfig libbsd libjson libgpgerror];
version = "2016-1-17"; version = "2018-1-30";
mainbin = "SoulseekQt-" + (version) +"-"+ (if stdenv.is64bit then "64bit" else "32bit"); mainbin = "SoulseekQt-" + (version) +"-"+ (if stdenv.is64bit then "64bit" else "32bit");
srcs = { srcs = {
"i686-linux" = fetchurl { "x86_64-linux" = fetchurl {
url = "https://www.dropbox.com/s/kebk1b5ib1m3xxw/${mainbin}.tgz"; url = "https://www.dropbox.com/s/0vi87eef3ooh7iy/${mainbin}.tgz";
sha256 = "0r9rhnfslkgbw3l7fnc0rcfqjh58amgh5p33kwam0qvn1h1frnir"; sha256 = "0d1cayxr1a4j19bc5a3qp9pg22ggzmd55b6f5av3lc6lvwqqg4w6";
};
}; };
"x86_64-linux" = fetchurl { desktopItem = makeDesktopItem {
url = "https://www.dropbox.com/s/7qh902qv2sxyp6p/${mainbin}.tgz"; name = "SoulseekQt";
sha256 = "05l3smpdvw8xdhv4v8a28j0yi1kvzhrha2ck23g4bl7x9wkay4cc"; exec = "soulseekqt";
}; icon = "$out/share/soulseekqt/";
comment = "Official Qt SoulSeek client";
desktopName = "SoulseekQt";
genericName = "SoulseekQt";
categories = "Network;";
}; };
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
@ -31,12 +39,22 @@ in stdenv.mkDerivation rec {
inherit version; inherit version;
src = srcs."${stdenv.system}" or (throw "unsupported system: ${stdenv.system}"); src = srcs."${stdenv.system}" or (throw "unsupported system: ${stdenv.system}");
sourceRoot = "."; dontBuild = true;
buildPhase = ":"; # nothing to build
buildInputs = [ pythonPackages.binwalk squashfsTools ];
# avoid usage of appimagetool
unpackCmd = ''
export HOME=$(pwd) # workaround for binwalk
tar xvf $curSrc && binwalk --quiet \
${mainbin}.AppImage -D 'squashfs:.squashfs:unsquashfs %e'
'';
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/{bin,share/soulseekqt}
cp ${mainbin} $out/bin/soulseekqt cd squashfs-root/
cp -R soulseek.png translations $out/share/soulseekqt
cp SoulseekQt $out/bin/soulseekqt
''; '';
fixupPhase = '' fixupPhase = ''
@ -50,6 +68,6 @@ in stdenv.mkDerivation rec {
homepage = http://www.soulseekqt.net; homepage = http://www.soulseekqt.net;
license = licenses.unfree; license = licenses.unfree;
maintainers = [ maintainers.genesis ]; maintainers = [ maintainers.genesis ];
platforms = [ "i686-linux" "x86_64-linux" ]; platforms = [ "x86_64-linux" ];
}; };
} }

View File

@ -18407,7 +18407,7 @@ with pkgs;
inherit (pkgs.vamp) vampSDK; inherit (pkgs.vamp) vampSDK;
}; };
soulseekqt = callPackage ../applications/networking/p2p/soulseekqt { }; soulseekqt = libsForQt5.callPackage ../applications/networking/p2p/soulseekqt { };
sox = callPackage ../applications/misc/audio/sox { sox = callPackage ../applications/misc/audio/sox {
enableLame = config.sox.enableLame or false; enableLame = config.sox.enableLame or false;