Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

59 lines
1.2 KiB
Nix

{
stdenv,
fetchFromGitHub,
lib,
cmake,
libxcb,
qtbase,
qtsvg,
wrapQtAppsHook,
procps,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "spotify-qt";
version = "4.0.1";
src = fetchFromGitHub {
owner = "kraxarn";
repo = "spotify-qt";
rev = "v${finalAttrs.version}";
hash = "sha256-R6ucuQdntc1OxDCV8jDAlyjAo/393HN7fjRJH70OdNs=";
};
postPatch = ''
substituteInPlace src/spotifyclient/helper.cpp \
--replace-fail /usr/bin/ps ${lib.getExe' procps "ps"}
'';
buildInputs = [
libxcb
qtbase
qtsvg
];
nativeBuildInputs = [
cmake
wrapQtAppsHook
];
cmakeFlags = [ (lib.cmakeFeature "CMAKE_INSTALL_PREFIX" "") ];
installFlags = [ "DESTDIR=$(out)" ];
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
mkdir -p $out/Applications
mv $out/bin/spotify-qt.app $out/Applications
ln $out/Applications/spotify-qt.app/Contents/MacOS/spotify-qt $out/bin/spotify-qt
'';
meta = with lib; {
description = "Lightweight unofficial Spotify client using Qt";
mainProgram = "spotify-qt";
homepage = "https://github.com/kraxarn/spotify-qt";
license = licenses.gpl3Only;
maintainers = with maintainers; [ iivusly ];
platforms = platforms.unix;
};
})