mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
100 lines
1.8 KiB
Nix
100 lines
1.8 KiB
Nix
{ mkDerivation
|
|
, stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, alsaLib
|
|
, boost
|
|
, chromaprint
|
|
, fftw
|
|
, gnutls
|
|
, libcdio
|
|
, libmtp
|
|
, libpthreadstubs
|
|
, libtasn1
|
|
, libXdmcp
|
|
, ninja
|
|
, pcre
|
|
, protobuf
|
|
, sqlite
|
|
, taglib
|
|
, libpulseaudio ? null
|
|
, libselinux ? null
|
|
, libsepol ? null
|
|
, p11-kit ? null
|
|
, util-linux ? null
|
|
, qtbase
|
|
, qtx11extras
|
|
, qttools
|
|
, withGstreamer ? true
|
|
, gst_all_1 ? null
|
|
, withVlc ? true
|
|
, libvlc ? null
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "strawberry";
|
|
version = "0.8.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jonaski";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-+ZQ80J94Teqt4Gy6fw/pS7FwILK/TPehtJDy72Bdy1E=";
|
|
};
|
|
|
|
buildInputs = [
|
|
alsaLib
|
|
boost
|
|
chromaprint
|
|
fftw
|
|
gnutls
|
|
libcdio
|
|
libmtp
|
|
libpthreadstubs
|
|
libtasn1
|
|
libXdmcp
|
|
pcre
|
|
protobuf
|
|
sqlite
|
|
taglib
|
|
qtbase
|
|
qtx11extras
|
|
]
|
|
++ lib.optionals stdenv.isLinux [
|
|
libpulseaudio
|
|
libselinux
|
|
libsepol
|
|
p11-kit
|
|
util-linux
|
|
]
|
|
++ lib.optionals withGstreamer (with gst_all_1; [
|
|
gstreamer
|
|
gst-plugins-base
|
|
gst-plugins-good
|
|
gst-plugins-ugly
|
|
])
|
|
++ lib.optional withVlc libvlc;
|
|
|
|
nativeBuildInputs = [ cmake ninja pkg-config qttools ];
|
|
|
|
cmakeFlags = [
|
|
"-DUSE_SYSTEM_TAGLIB=ON"
|
|
];
|
|
|
|
postInstall = ''
|
|
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Music player and music collection organizer";
|
|
homepage = "https://www.strawberrymusicplayer.org/";
|
|
changelog = "https://raw.githubusercontent.com/jonaski/strawberry/${version}/Changelog";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
# upstream says darwin should work but they lack maintainers as of 0.6.6
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|