···
5
+
, qtbase, qtmultimedia
6
+
, libjson, libgpgerror
, libX11, libxcb, libXau, libXdmcp, freetype, libbsd
8
+
, pythonPackages, squashfsTools, makeDesktopItem
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];
13
-
version = "2016-1-17";
16
+
version = "2018-1-30";
mainbin = "SoulseekQt-" + (version) +"-"+ (if stdenv.is64bit then "64bit" else "32bit");
17
-
"i686-linux" = fetchurl {
18
-
url = "https://www.dropbox.com/s/kebk1b5ib1m3xxw/${mainbin}.tgz";
19
-
sha256 = "0r9rhnfslkgbw3l7fnc0rcfqjh58amgh5p33kwam0qvn1h1frnir";
"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";
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;";
in stdenv.mkDerivation rec {
name = "soulseekqt-${version}";
src = srcs."${stdenv.system}" or (throw "unsupported system: ${stdenv.system}");
35
-
buildPhase = ":"; # nothing to build
44
+
buildInputs = [ pythonPackages.binwalk squashfsTools ];
46
+
# avoid usage of appimagetool
48
+
export HOME=$(pwd) # workaround for binwalk
49
+
tar xvf $curSrc && binwalk --quiet \
50
+
${mainbin}.AppImage -D 'squashfs:.squashfs:unsquashfs %e'
39
-
cp ${mainbin} $out/bin/soulseekqt
54
+
mkdir -p $out/{bin,share/soulseekqt}
56
+
cp -R soulseek.png translations $out/share/soulseekqt
57
+
cp SoulseekQt $out/bin/soulseekqt
···
homepage = http://www.soulseekqt.net;
license = licenses.unfree;
maintainers = [ maintainers.genesis ];
53
-
platforms = [ "i686-linux" "x86_64-linux" ];
71
+
platforms = [ "x86_64-linux" ];