mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 01:20:40 +00:00
8d59785746
Co-authored-by: Karthik Iyengar <hello@kiyengar.net> Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
37 lines
784 B
Nix
37 lines
784 B
Nix
{ fetchFromGitHub
|
|
, lib
|
|
, cmake
|
|
, mkDerivation
|
|
, libxcb
|
|
, qtbase
|
|
, qtsvg
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "spotify-qt";
|
|
version = "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kraxarn";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1bgd0q4sbbww3lbrx2zwgaz0sl7qh195s4kvgsq16gv7ij82bskn";
|
|
};
|
|
|
|
buildInputs = [ libxcb qtbase qtsvg ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=" ];
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
meta = with lib; {
|
|
description = "Lightweight unofficial Spotify client using Qt";
|
|
homepage = "https://github.com/kraxarn/spotify-qt";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ kiyengar ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|