spotify-qt: 3.11 -> 3.12
This commit is contained in:
parent
4d2418ebbf
commit
d099ad0a0e
@ -1,38 +1,47 @@
|
|||||||
{
|
{
|
||||||
stdenvNoCC,
|
stdenv,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
lib,
|
lib,
|
||||||
cmake,
|
cmake,
|
||||||
mkDerivation,
|
|
||||||
libxcb,
|
libxcb,
|
||||||
qtbase,
|
qtbase,
|
||||||
qtsvg,
|
qtsvg,
|
||||||
|
wrapQtAppsHook,
|
||||||
|
procps,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "spotify-qt";
|
pname = "spotify-qt";
|
||||||
version = "3.11";
|
version = "3.12";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "kraxarn";
|
owner = "kraxarn";
|
||||||
repo = pname;
|
repo = "spotify-qt";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
sha256 = "sha256-Dm+ELHtYZGSzJSrERtvpuuV5cVZ9ah9WQ0iTTJqGqVg=";
|
hash = "sha256-j9g2fq12gsue0pc/fLoCAtDlwwlbCVJ65kxPiTJTqvk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace src/spotifyclient/helper.cpp \
|
||||||
|
--replace-fail /usr/bin/ps ${lib.getExe' procps "ps"}
|
||||||
|
'';
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libxcb
|
libxcb
|
||||||
qtbase
|
qtbase
|
||||||
qtsvg
|
qtsvg
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
wrapQtAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
cmakeFlags = [ "-DCMAKE_INSTALL_PREFIX=" ];
|
cmakeFlags = [ (lib.cmakeFeature "CMAKE_INSTALL_PREFIX" "") ];
|
||||||
|
|
||||||
installFlags = [ "DESTDIR=$(out)" ];
|
installFlags = [ "DESTDIR=$(out)" ];
|
||||||
|
|
||||||
postInstall = lib.optionalString stdenvNoCC.hostPlatform.isDarwin ''
|
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||||
mkdir -p $out/Applications
|
mkdir -p $out/Applications
|
||||||
mv $out/bin/spotify-qt.app $out/Applications
|
mv $out/bin/spotify-qt.app $out/Applications
|
||||||
ln $out/Applications/spotify-qt.app/Contents/MacOS/spotify-qt $out/bin/spotify-qt
|
ln $out/Applications/spotify-qt.app/Contents/MacOS/spotify-qt $out/bin/spotify-qt
|
||||||
@ -46,4 +55,4 @@ mkDerivation rec {
|
|||||||
maintainers = with maintainers; [ iivusly ];
|
maintainers = with maintainers; [ iivusly ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|||||||
@ -15495,7 +15495,7 @@ with pkgs;
|
|||||||
|
|
||||||
sommelier = callPackage ../applications/window-managers/sommelier { };
|
sommelier = callPackage ../applications/window-managers/sommelier { };
|
||||||
|
|
||||||
spotify-qt = libsForQt5.callPackage ../applications/audio/spotify-qt { };
|
spotify-qt = qt6Packages.callPackage ../applications/audio/spotify-qt { };
|
||||||
|
|
||||||
squishyball = callPackage ../applications/audio/squishyball {
|
squishyball = callPackage ../applications/audio/squishyball {
|
||||||
ncurses = ncurses5;
|
ncurses = ncurses5;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user