kew: 1.5.2->3.0.3, darwin support, add darwin maintainer, derivation cleanup (#386250)

This commit is contained in:
Gaétan Lepage
2025-03-02 10:58:47 +01:00
committed by GitHub
+48 -19
View File
@@ -1,39 +1,68 @@
{ lib
, stdenv
, fetchFromGitHub
, ffmpeg
, fftwFloat
, chafa
, freeimage
, glib
, pkg-config
{
lib,
stdenv,
fetchFromGitHub,
fftwFloat,
chafa,
glib,
libopus,
opusfile,
libvorbis,
taglib,
faad2,
libogg,
pkg-config,
versionCheckHook,
gitUpdater,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "kew";
version = "1.5.2";
version = "3.0.3";
src = fetchFromGitHub {
owner = "ravachol";
repo = "kew";
rev = "v${version}";
hash = "sha256-Om7v8eTlYxXQYf1MG+L0I5ICQ2LS7onouhPGosuK8NM=";
tag = "v${finalAttrs.version}";
hash = "sha256-DzJ+7PanA15A9nIbFPWZ/tdxq4aDyParJORcuqHV7jc=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ ffmpeg freeimage fftwFloat chafa glib ];
buildInputs = [
fftwFloat.dev
chafa
glib.dev
libopus
opusfile
libvorbis
taglib
faad2
libogg
];
installFlags = [
"MAN_DIR=${placeholder "out"}/share/man"
"PREFIX=${placeholder "out"}"
];
meta = with lib; {
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = [ "--version" ];
doInstallCheck = true;
passthru = {
updateScript = gitUpdater { };
};
meta = {
description = "Command-line music player for Linux";
homepage = "https://github.com/ravachol/kew";
platforms = platforms.linux;
license = licenses.gpl2Only;
maintainers = with maintainers; [ demine ];
platforms = lib.platforms.unix;
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [
demine
matteopacini
];
mainProgram = "kew";
};
}
})