git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #36343 from bignaux/soulseekqt

soulseekqt: init at 2016-1-17 (last official stable)

commit9cfeabb3279cb79d87becc11b21da2ae47643f83 authorlewo <lewo@abesis.fr> dateTue 6 Mar 2018, 19:01 (9 years ago) parent4134e6296a3f1b
2 files changed+57
pkgs/applications/networking/p2p/soulseekqt/default.nix+55 pkgs/top-level/all-packages.nix+2
pkgs/applications/networking/p2p/soulseekqt/default.nixnew file+55
@@ -0,0 +1,55 @@
1+{ stdenv
2+, fetchurl
3+, dbus
4+, expat, zlib, fontconfig
5+, libpng, 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 = ''
43+ patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
44+ --set-rpath ${libPath} \
45+ $out/bin/soulseekqt
46+ '';
47+
48+ meta = with stdenv.lib; {
49+ description = "Official Qt SoulSeek client";
50+ homepage = http://www.soulseekqt.net;
51+ license = licenses.unfree;
52+ maintainers = [ maintainers.genesis ];
53+ platforms = [ "i686-linux" "x86_64-linux" ];
54+ };
55+}
pkgs/top-level/all-packages.nix+2
@@ -17533,6 +17533,8 @@ with pkgs;
1753317533 inherit (pkgs.vamp) vampSDK;
1753417534 };
1753517535
17536+ soulseekqt = callPackage ../applications/networking/p2p/soulseekqt { };
17537+
1753617538 sox = callPackage ../applications/misc/audio/sox {
1753717539 enableLame = config.sox.enableLame or false;
1753817540 };