Merge staging-next into staging
This commit is contained in:
commit
581059aed4
@ -1,22 +0,0 @@
|
||||
{ stdenv, fetchurl, ffmpeg, sox }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bs1770gain";
|
||||
version = "0.5.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/bs1770gain/${pname}-${version}.tar.gz";
|
||||
sha256 = "1p6yz5q7czyf9ard65sp4kawdlkg40cfscr3b24znymmhs3p7rbk";
|
||||
};
|
||||
|
||||
buildInputs = [ ffmpeg sox ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A audio/video loudness scanner implementing ITU-R BS.1770";
|
||||
license = licenses.gpl2Plus;
|
||||
homepage = "http://bs1770gain.sourceforge.net/";
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -1,8 +1,9 @@
|
||||
{
|
||||
mkDerivation, lib, kdepimTeam,
|
||||
extra-cmake-modules, shared-mime-info, qtbase,
|
||||
boost, kcompletion, kconfigwidgets, kcrash, kdbusaddons, kdesignerplugin,
|
||||
ki18n, kiconthemes, kio, kitemmodels, kwindowsystem, mysql, qttools,
|
||||
extra-cmake-modules, shared-mime-info, qtbase, accounts-qt,
|
||||
boost, kaccounts-integration, kcompletion, kconfigwidgets, kcrash, kdbusaddons,
|
||||
kdesignerplugin, ki18n, kiconthemes, kio, kitemmodels, kwindowsystem, mysql, qttools,
|
||||
signond,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
@ -19,8 +20,8 @@ mkDerivation {
|
||||
];
|
||||
nativeBuildInputs = [ extra-cmake-modules shared-mime-info ];
|
||||
buildInputs = [
|
||||
kcompletion kconfigwidgets kcrash kdbusaddons kdesignerplugin ki18n
|
||||
kiconthemes kio kwindowsystem qttools
|
||||
kaccounts-integration kcompletion kconfigwidgets kcrash kdbusaddons kdesignerplugin
|
||||
ki18n kiconthemes kio kwindowsystem accounts-qt qttools signond
|
||||
];
|
||||
propagatedBuildInputs = [ boost kitemmodels ];
|
||||
outputs = [ "out" "dev" ];
|
||||
|
@ -86,6 +86,7 @@ let
|
||||
gwenview = callPackage ./gwenview.nix {};
|
||||
incidenceeditor = callPackage ./incidenceeditor.nix {};
|
||||
k3b = callPackage ./k3b.nix {};
|
||||
kaccounts-integration = callPackage ./kaccounts-integration.nix {};
|
||||
kaddressbook = callPackage ./kaddressbook.nix {};
|
||||
kalarm = callPackage ./kalarm.nix {};
|
||||
kalarmcal = callPackage ./kalarmcal.nix {};
|
||||
|
23
pkgs/applications/kde/kaccounts-integration.nix
Normal file
23
pkgs/applications/kde/kaccounts-integration.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{ mkDerivation, lib, extra-cmake-modules, kdoctools, kcmutils, kcoreaddons, kwallet, accounts-qt, signond }:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kaccounts-integration";
|
||||
meta = with lib; {
|
||||
homepage = "https://community.kde.org/KTp/Setting_up_KAccounts";
|
||||
description = "Online accounts integration";
|
||||
maintainers = with maintainers; [ freezeboy ];
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
nativeBuildInputs = [
|
||||
extra-cmake-modules
|
||||
];
|
||||
buildInputs = [
|
||||
kcmutils
|
||||
kcoreaddons
|
||||
kdoctools
|
||||
kwallet
|
||||
accounts-qt
|
||||
signond
|
||||
];
|
||||
}
|
@ -1,16 +1,17 @@
|
||||
{ stdenv, fetchFromGitHub, cmake, pkgconfig, vala, gtk3, libgee, fetchpatch
|
||||
, poppler, libpthreadstubs, gstreamer, gst-plugins-base, gst-plugins-good, gst-libav, librsvg, pcre, gobject-introspection, wrapGAppsHook }:
|
||||
, poppler, libpthreadstubs, gstreamer, gst-plugins-base, gst-plugins-good, gst-libav, librsvg, pcre, gobject-introspection, wrapGAppsHook
|
||||
, webkitgtk, discount, json-glib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${product}-${version}";
|
||||
product = "pdfpc";
|
||||
version = "4.4.1";
|
||||
version = "4.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = product;
|
||||
owner = product;
|
||||
rev = "v${version}";
|
||||
sha256 = "11n925c5jj3yfwnqkgxzqrmsrpqh8ls1g4idmqqzpsanpam1xvna";
|
||||
sha256 = "0bmy51w6ypz927hxwp5g7wapqvzqmsi3w32rch6i3f94kg1152ck";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@ -27,6 +28,9 @@ stdenv.mkDerivation rec {
|
||||
gst-plugins-base
|
||||
(gst-plugins-good.override { gtkSupport = true; })
|
||||
gst-libav
|
||||
webkitgtk
|
||||
discount
|
||||
json-glib
|
||||
];
|
||||
|
||||
cmakeFlags = stdenv.lib.optional stdenv.isDarwin "-DMOVIES=OFF";
|
||||
|
@ -1,24 +1,27 @@
|
||||
{ stdenv, fetchurl, ncurses }:
|
||||
{ stdenv, fetchFromGitHub, ncurses }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.1.4";
|
||||
version = "1.2.1";
|
||||
pname = "iptraf-ng";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://fedorahosted.org/releases/i/p/iptraf-ng/${pname}-${version}.tar.gz";
|
||||
sha256 = "02gb8z9h2s6s1ybyikywz7jgb1mafdx88hijfasv3khcgkq0q53r";
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1f91w1bjaayr6ld95z2q55ny983bb0m05k1jrw2bcddvcihaiqb1";
|
||||
};
|
||||
|
||||
buildInputs = [ ncurses ];
|
||||
|
||||
configurePhase = ''
|
||||
./configure --prefix=$out/usr --sysconfdir=$out/etc \
|
||||
--localstatedir=$out/var --sbindir=$out/bin
|
||||
'';
|
||||
makeFlags = [
|
||||
"DESTDIR=$(out)"
|
||||
"prefix=/usr"
|
||||
"sbindir=/bin"
|
||||
];
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
description = "A console-based network monitoring utility (fork of iptraf)";
|
||||
longDescription = ''
|
||||
IPTraf-ng is a console-based network monitoring utility. IPTraf-ng
|
||||
@ -38,9 +41,9 @@ stdenv.mkDerivation rec {
|
||||
of the Linux kernel, so it can be used on a wide variety of supported
|
||||
network cards.
|
||||
'';
|
||||
homepage = "https://fedorahosted.org/iptraf-ng/";
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = [ stdenv.lib.maintainers.devhell ];
|
||||
homepage = "https://github.com/iptraf-ng/iptraf-ng";
|
||||
license = licenses.gpl2Only;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ devhell ];
|
||||
};
|
||||
}
|
||||
|
@ -12,7 +12,6 @@ with stdenv.lib;
|
||||
let
|
||||
version = "3.4.2";
|
||||
variant = if withQt then "qt" else "cli";
|
||||
pcap = libpcap.override { withBluez = stdenv.isLinux; };
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
pname = "wireshark-${variant}";
|
||||
@ -39,7 +38,7 @@ in stdenv.mkDerivation {
|
||||
] ++ optional withQt qt5.wrapQtAppsHook;
|
||||
|
||||
buildInputs = [
|
||||
gettext pcre perl pcap lua5 libssh nghttp2 openssl libgcrypt
|
||||
gettext pcre perl libpcap lua5 libssh nghttp2 openssl libgcrypt
|
||||
libgpgerror gnutls geoip c-ares python3 glib zlib makeWrapper
|
||||
] ++ optionals withQt (with qt5; [ qtbase qtmultimedia qtsvg qttools ])
|
||||
++ optionals stdenv.isLinux [ libcap libnl ]
|
||||
|
@ -7,7 +7,12 @@
|
||||
, profiledCompiler ? false
|
||||
, langJit ? false
|
||||
, staticCompiler ? false
|
||||
, enableShared ? true
|
||||
, # N.B. the defult is intentionally not from an `isStatic`. See
|
||||
# https://gcc.gnu.org/install/configure.html - this is about target
|
||||
# platform libraries not host platform ones unlike normal. But since
|
||||
# we can't rebuild those without also rebuilding the compiler itself,
|
||||
# we opt to always build everything unlike our usual policy.
|
||||
enableShared ? true
|
||||
, enableLTO ? true
|
||||
, texinfo ? null
|
||||
, perl ? null # optional, for texi2pod (then pod2man)
|
||||
@ -137,10 +142,10 @@ stdenv.mkDerivation ({
|
||||
)
|
||||
else "")
|
||||
+ stdenv.lib.optionalString targetPlatform.isAvr ''
|
||||
makeFlagsArray+=(
|
||||
'LIMITS_H_TEST=false'
|
||||
)
|
||||
'';
|
||||
makeFlagsArray+=(
|
||||
'LIMITS_H_TEST=false'
|
||||
)
|
||||
'';
|
||||
|
||||
inherit noSysDirs staticCompiler crossStageStatic
|
||||
libcCross crossMingw;
|
||||
|
@ -7,7 +7,12 @@
|
||||
, profiledCompiler ? false
|
||||
, langJit ? false
|
||||
, staticCompiler ? false
|
||||
, enableShared ? true
|
||||
, # N.B. the defult is intentionally not from an `isStatic`. See
|
||||
# https://gcc.gnu.org/install/configure.html - this is about target
|
||||
# platform libraries not host platform ones unlike normal. But since
|
||||
# we can't rebuild those without also rebuilding the compiler itself,
|
||||
# we opt to always build everything unlike our usual policy.
|
||||
enableShared ? true
|
||||
, enableLTO ? true
|
||||
, texinfo ? null
|
||||
, perl ? null # optional, for texi2pod (then pod2man); required for Java
|
||||
|
@ -7,7 +7,12 @@
|
||||
, profiledCompiler ? false
|
||||
, langJit ? false
|
||||
, staticCompiler ? false
|
||||
, enableShared ? true
|
||||
, # N.B. the defult is intentionally not from an `isStatic`. See
|
||||
# https://gcc.gnu.org/install/configure.html - this is about target
|
||||
# platform libraries not host platform ones unlike normal. But since
|
||||
# we can't rebuild those without also rebuilding the compiler itself,
|
||||
# we opt to always build everything unlike our usual policy.
|
||||
enableShared ? true
|
||||
, enableLTO ? true
|
||||
, texinfo ? null
|
||||
, perl ? null # optional, for texi2pod (then pod2man); required for Java
|
||||
|
@ -8,7 +8,12 @@
|
||||
, profiledCompiler ? false
|
||||
, langJit ? false
|
||||
, staticCompiler ? false
|
||||
, enableShared ? true
|
||||
, # N.B. the defult is intentionally not from an `isStatic`. See
|
||||
# https://gcc.gnu.org/install/configure.html - this is about target
|
||||
# platform libraries not host platform ones unlike normal. But since
|
||||
# we can't rebuild those without also rebuilding the compiler itself,
|
||||
# we opt to always build everything unlike our usual policy.
|
||||
enableShared ? true
|
||||
, enableLTO ? true
|
||||
, texinfo ? null
|
||||
, flex
|
||||
|
@ -6,7 +6,12 @@
|
||||
, profiledCompiler ? false
|
||||
, langJit ? false
|
||||
, staticCompiler ? false
|
||||
, enableShared ? true
|
||||
, # N.B. the defult is intentionally not from an `isStatic`. See
|
||||
# https://gcc.gnu.org/install/configure.html - this is about target
|
||||
# platform libraries not host platform ones unlike normal. But since
|
||||
# we can't rebuild those without also rebuilding the compiler itself,
|
||||
# we opt to always build everything unlike our usual policy.
|
||||
enableShared ? true
|
||||
, enableLTO ? true
|
||||
, texinfo ? null
|
||||
, perl ? null # optional, for texi2pod (then pod2man)
|
||||
|
@ -6,7 +6,12 @@
|
||||
, profiledCompiler ? false
|
||||
, langJit ? false
|
||||
, staticCompiler ? false
|
||||
, enableShared ? true
|
||||
, # N.B. the defult is intentionally not from an `isStatic`. See
|
||||
# https://gcc.gnu.org/install/configure.html - this is about target
|
||||
# platform libraries not host platform ones unlike normal. But since
|
||||
# we can't rebuild those without also rebuilding the compiler itself,
|
||||
# we opt to always build everything unlike our usual policy.
|
||||
enableShared ? true
|
||||
, enableLTO ? true
|
||||
, texinfo ? null
|
||||
, perl ? null # optional, for texi2pod (then pod2man)
|
||||
@ -134,10 +139,10 @@ stdenv.mkDerivation ({
|
||||
)
|
||||
else "")
|
||||
+ stdenv.lib.optionalString targetPlatform.isAvr ''
|
||||
makeFlagsArray+=(
|
||||
'LIMITS_H_TEST=false'
|
||||
)
|
||||
'';
|
||||
makeFlagsArray+=(
|
||||
'LIMITS_H_TEST=false'
|
||||
)
|
||||
'';
|
||||
|
||||
inherit noSysDirs staticCompiler crossStageStatic
|
||||
libcCross crossMingw;
|
||||
|
@ -8,7 +8,12 @@
|
||||
, profiledCompiler ? false
|
||||
, langJit ? false
|
||||
, staticCompiler ? false
|
||||
, enableShared ? true
|
||||
, # N.B. the defult is intentionally not from an `isStatic`. See
|
||||
# https://gcc.gnu.org/install/configure.html - this is about target
|
||||
# platform libraries not host platform ones unlike normal. But since
|
||||
# we can't rebuild those without also rebuilding the compiler itself,
|
||||
# we opt to always build everything unlike our usual policy.
|
||||
enableShared ? true
|
||||
, enableLTO ? true
|
||||
, texinfo ? null
|
||||
, perl ? null # optional, for texi2pod (then pod2man)
|
||||
|
@ -35,8 +35,8 @@ let
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "go";
|
||||
version = "2";
|
||||
pname = "go2-unstable";
|
||||
version = "2020-12-08";
|
||||
|
||||
src = fetchgit {
|
||||
url = https://go.googlesource.com/go;
|
||||
|
@ -1,5 +1,6 @@
|
||||
{ lib, stdenv, fetch, cmake, python3, libcxxabi, fixDarwinDylibNames, version
|
||||
, enableShared ? true }:
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "libc++";
|
||||
|
@ -1,5 +1,6 @@
|
||||
{ stdenv, cmake, fetch, libcxx, libunwind, llvm, version
|
||||
, enableShared ? true }:
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "libc++abi";
|
||||
|
@ -1,4 +1,6 @@
|
||||
{ stdenv, version, fetch, cmake, fetchpatch, enableShared ? true }:
|
||||
{ stdenv, version, fetch, cmake, fetchpatch
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libunwind";
|
||||
|
@ -1,5 +1,6 @@
|
||||
{ lib, stdenv, fetch, cmake, python3, libcxxabi, llvm, fixDarwinDylibNames, version
|
||||
, enableShared ? true }:
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "libc++";
|
||||
|
@ -1,5 +1,6 @@
|
||||
{ stdenv, cmake, fetch, libcxx, libunwind, llvm, version
|
||||
, enableShared ? true }:
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "libc++abi";
|
||||
|
@ -1,4 +1,6 @@
|
||||
{ stdenv, version, fetch, cmake, fetchpatch, enableShared ? true }:
|
||||
{ stdenv, version, fetch, cmake, fetchpatch
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libunwind";
|
||||
|
@ -1,5 +1,6 @@
|
||||
{ lib, stdenv, fetch, cmake, python3, libcxxabi, fixDarwinDylibNames, version
|
||||
, enableShared ? ! stdenv.hostPlatform.isMusl }:
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "libc++";
|
||||
|
@ -1,7 +1,8 @@
|
||||
{ stdenv, cmake, fetch, libcxx, llvm, version
|
||||
, standalone ? false
|
||||
# on musl the shared objects don't build
|
||||
, enableShared ? ! stdenv.hostPlatform.isMusl }:
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "libc++abi";
|
||||
|
@ -1,5 +1,6 @@
|
||||
{ lib, stdenv, fetch, cmake, python3, libcxxabi, fixDarwinDylibNames, version
|
||||
, enableShared ? true }:
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "libc++";
|
||||
|
@ -1,5 +1,6 @@
|
||||
{ stdenv, cmake, fetch, libcxx, libunwind, llvm, version
|
||||
, enableShared ? true }:
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "libc++abi";
|
||||
|
@ -1,4 +1,6 @@
|
||||
{ stdenv, version, fetch, cmake, fetchpatch, enableShared ? true }:
|
||||
{ stdenv, version, fetch, cmake, fetchpatch
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "libunwind";
|
||||
|
@ -1,5 +1,6 @@
|
||||
{ lib, stdenv, fetch, cmake, python3, libcxxabi, fixDarwinDylibNames, version
|
||||
, enableShared ? true }:
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "libc++";
|
||||
|
@ -1,5 +1,6 @@
|
||||
{ stdenv, cmake, fetch, libcxx, libunwind, llvm, version
|
||||
, enableShared ? true }:
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "libc++abi";
|
||||
|
@ -1,4 +1,6 @@
|
||||
{ stdenv, version, fetch, cmake, fetchpatch, enableShared ? true }:
|
||||
{ stdenv, version, fetch, cmake, fetchpatch
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libunwind";
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchFromGitLab, doxygen, glib, libaccounts-glib, pkgconfig, qtbase, qmake }:
|
||||
{ mkDerivation, lib, fetchFromGitLab, doxygen, glib, libaccounts-glib, pkgconfig, qmake }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
mkDerivation rec {
|
||||
pname = "accounts-qt";
|
||||
version = "1.16";
|
||||
|
||||
@ -11,17 +11,13 @@ stdenv.mkDerivation rec {
|
||||
owner = "accounts-sso";
|
||||
};
|
||||
|
||||
buildInputs = [ glib libaccounts-glib qtbase ];
|
||||
propagatedBuildInputs = [ glib libaccounts-glib ];
|
||||
nativeBuildInputs = [ doxygen pkgconfig qmake ];
|
||||
|
||||
preConfigure = ''
|
||||
qmakeFlags="$qmakeFlags LIBDIR=$out/lib CMAKE_CONFIG_PATH=$out/lib/cmake"
|
||||
'';
|
||||
|
||||
# Hack to avoid TMPDIR in RPATHs.
|
||||
preFixup = ''rm -rf "$(pwd)" '';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Qt library for accessing the online accounts database";
|
||||
homepage = "https://gitlab.com/accounts-sso";
|
||||
license = licenses.lgpl21;
|
||||
|
@ -1,7 +1,8 @@
|
||||
{ stdenv, lib, fetchurl, fetchFromGitHub, fetchpatch, fixDarwinDylibNames
|
||||
, autoconf, boost, brotli, cmake, flatbuffers, gflags, glog, gtest, lz4
|
||||
, perl, python3, rapidjson, snappy, thrift, utf8proc, which, zlib, zstd
|
||||
, enableShared ? true }:
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
let
|
||||
arrow-testing = fetchFromGitHub {
|
||||
|
@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
|
||||
#
|
||||
# There might be a more sensible way to do this with autotools, but I am not
|
||||
# smart enough to discover it.
|
||||
preBuild = lib.optionalString stdenv.targetPlatform.isStatic ''
|
||||
preBuild = lib.optionalString stdenv.hostPlatform.isStatic ''
|
||||
make -C libaudiofile $makeFlags
|
||||
sed -i "s/dependency_libs=.*/dependency_libs=' -lstdc++'/" libaudiofile/libaudiofile.la
|
||||
'';
|
||||
|
@ -8,7 +8,7 @@
|
||||
, enableDebug ? false
|
||||
, enableSingleThreaded ? false
|
||||
, enableMultiThreaded ? true
|
||||
, enableShared ? !(stdenv.hostPlatform.libc == "msvcrt") # problems for now
|
||||
, enableShared ? !(with stdenv.hostPlatform; isStatic || libc == "msvcrt") # problems for now
|
||||
, enableStatic ? !enableShared
|
||||
, enablePython ? false
|
||||
, enableNumpy ? false
|
||||
|
@ -1,4 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub, fetchpatch, cmake, enableShared ? true }:
|
||||
{ stdenv, fetchFromGitHub, fetchpatch, cmake
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
let
|
||||
generic = { version, sha256, patches ? [ ] }:
|
||||
|
@ -1,4 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub, cmake, enableShared ? true}:
|
||||
{ stdenv, fetchFromGitHub, cmake
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gflags";
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ stdenv, fetchurl, m4, cxx ? true, withStatic ? true }:
|
||||
{ stdenv, fetchurl, m4
|
||||
, cxx ? true
|
||||
, withStatic ? stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
let inherit (stdenv.lib) optional; in
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
{ stdenv, fetchurl, m4
|
||||
, cxx ? !stdenv.hostPlatform.useAndroidPrebuilt && !stdenv.hostPlatform.isWasm
|
||||
, buildPackages
|
||||
, withStatic ? false }:
|
||||
, withStatic ? stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
# Note: this package is used for bootstrapping fetchurl, and thus
|
||||
# cannot use fetchpatch! All mutable patches (generated by GitHub or
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ stdenv, callPackage, fetchFromGitHub, enableStatic ? false, enableShared ? true }:
|
||||
{ stdenv, callPackage, fetchFromGitHub
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
let
|
||||
yesno = b: if b then "yes" else "no";
|
||||
in stdenv.mkDerivation rec {
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ stdenv, fetchurl, fetchpatch, enableStatic ? true, enableShared ? true }:
|
||||
{ stdenv, fetchurl, fetchpatch
|
||||
, enableStatic ? true
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libexecinfo";
|
||||
|
@ -1,4 +1,6 @@
|
||||
{ stdenv, buildPackages, staticBuild ? false }:
|
||||
{ stdenv, buildPackages
|
||||
, staticBuild ? stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
let inherit (buildPackages.buildPackages) gcc; in
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ fetchurl, stdenv, lib
|
||||
, enableStatic ? stdenv.hostPlatform.useAndroidPrebuilt
|
||||
, enableShared ? !stdenv.hostPlatform.useAndroidPrebuilt
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
# assert !stdenv.hostPlatform.isLinux || stdenv.hostPlatform != stdenv.buildPlatform; # TODO: improve on cross
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ stdenv, fetchFromGitHub, cmake, nasm, enableStatic ? false, enableShared ? true }:
|
||||
{ stdenv, fetchFromGitHub, cmake, nasm
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
{ stdenv, fetchurl, enableShared ? true }:
|
||||
{ stdenv, fetchurl
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (rec {
|
||||
version = "4.11.0";
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ stdenv, lib, fetchurl, fetchpatch
|
||||
, zlib, xz, libintl, python, gettext, ncurses, findXMLCatalogs
|
||||
, pythonSupport ? stdenv.buildPlatform == stdenv.hostPlatform
|
||||
, pythonSupport ? enableShared && stdenv.buildPlatform == stdenv.hostPlatform
|
||||
, icuSupport ? false, icu ? null
|
||||
, enableShared ? stdenv.hostPlatform.libc != "msvcrt"
|
||||
, enableStatic ? !enableShared,
|
||||
|
@ -1,7 +1,7 @@
|
||||
{ stdenv, fetchFromGitHub, coreutils, gfortran, gnused
|
||||
, python3, util-linux, which
|
||||
|
||||
, enableStatic ? false
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -3,7 +3,7 @@
|
||||
, abiVersion ? "6"
|
||||
, mouseSupport ? false
|
||||
, unicode ? true
|
||||
, enableStatic ? stdenv.hostPlatform.useAndroidPrebuilt
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
, enableShared ? !enableStatic
|
||||
, withCxx ? !stdenv.hostPlatform.useAndroidPrebuilt
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
{ stdenv, fetchurl, libxml2, pkgconfig, perl
|
||||
, compressionSupport ? true, zlib ? null
|
||||
, sslSupport ? true, openssl ? null
|
||||
, static ? false
|
||||
, shared ? true
|
||||
, static ? stdenv.hostPlatform.isStatic
|
||||
, shared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
assert compressionSupport -> zlib != null;
|
||||
|
@ -2,7 +2,7 @@
|
||||
, withCryptodev ? false, cryptodev
|
||||
, enableSSL2 ? false
|
||||
, enableSSL3 ? false
|
||||
, static ? false
|
||||
, static ? stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
# Note: this package is used for bootstrapping fetchurl, and thus
|
||||
|
@ -10,7 +10,7 @@
|
||||
, zstd
|
||||
, enableJemalloc ? false, jemalloc
|
||||
, enableLite ? false
|
||||
, enableShared ? true
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -1,11 +1,12 @@
|
||||
{ callPackage
|
||||
{ stdenv
|
||||
, callPackage
|
||||
, stdenvNoCC
|
||||
, fetchurl
|
||||
, rpmextract
|
||||
, undmg
|
||||
, darwin
|
||||
, validatePkgConfig
|
||||
, enableStatic ? false
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
/*
|
||||
|
@ -15,8 +15,8 @@
|
||||
# Select a specific optimization target (other than the default)
|
||||
# See https://github.com/xianyi/OpenBLAS/blob/develop/TargetList.txt
|
||||
, target ? null
|
||||
, enableStatic ? false
|
||||
, enableShared ? true
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
30
pkgs/development/libraries/signond/default.nix
Normal file
30
pkgs/development/libraries/signond/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ mkDerivation, lib, fetchFromGitLab, qmake, doxygen }:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "signond";
|
||||
version = "8.60";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "accounts-sso";
|
||||
repo = pname;
|
||||
rev = "VERSION_${version}";
|
||||
sha256 = "pFpeJ13ut5EoP37W33WrYL2LzkX/k7ZKJcRpPO5l8i4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
qmake
|
||||
doxygen
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace src/signond/signond.pro \
|
||||
--replace "/etc" "@out@/etc"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://gitlab.com/accounts-sso/signond";
|
||||
description = "Signon Daemon for Qt";
|
||||
maintainers = with maintainers; [ freezeboy ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -1,5 +1,7 @@
|
||||
{ stdenv, fetchurl, fetchpatch, boost, zlib, libevent, openssl, python, cmake, pkgconfig
|
||||
, bison, flex, twisted, static ? false }:
|
||||
, bison, flex, twisted
|
||||
, static ? stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "thrift";
|
||||
|
@ -17,23 +17,19 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "umockdev";
|
||||
version = "0.15.2";
|
||||
version = "0.15.4";
|
||||
|
||||
outputs = [ "bin" "out" "dev" "doc" ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/martinpitt/umockdev/releases/download/${version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "19f21qb9ckwvlm7yzpnc0vcp092qbkms2yrafc26b9a63v4imj52";
|
||||
sha256 = "09k8jwvsphd97hcagf0zaf0hwzlzq2r8jfgbmvj55k7ylrg8hjxg";
|
||||
};
|
||||
|
||||
mesonFlags = [
|
||||
"-Dgtk_doc=true"
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
patchShebangs tests/test-static-code
|
||||
'';
|
||||
|
||||
buildInputs = [ glib systemd libgudev ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
@ -50,10 +46,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
# Test fail with libusb 1.0.24
|
||||
# https://github.com/NixOS/nixpkgs/issues/107420
|
||||
# https://github.com/martinpitt/umockdev/issues/115
|
||||
doCheck = false;
|
||||
doCheck = true;
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $doc/share/doc/umockdev/
|
||||
|
@ -1,13 +0,0 @@
|
||||
diff --git a/tests/test-umockdev-vala.vala b/tests/test-umockdev-vala.vala
|
||||
index 8b104b2..d9889b8 100644
|
||||
--- a/tests/test-umockdev-vala.vala
|
||||
+++ b/tests/test-umockdev-vala.vala
|
||||
@@ -668,7 +668,7 @@ main (string[] args)
|
||||
|
||||
/* tests for mocking ioctls */
|
||||
Test.add_func ("/umockdev-testbed-vala/usbfs_ioctl_static", t_usbfs_ioctl_static);
|
||||
- Test.add_func ("/umockdev-testbed-vala/usbfs_ioctl_tree", t_usbfs_ioctl_tree);
|
||||
+ /* Test.add_func ("/umockdev-testbed-vala/usbfs_ioctl_tree", t_usbfs_ioctl_tree); */
|
||||
Test.add_func ("/umockdev-testbed-vala/usbfs_ioctl_tree_with_default_device", t_usbfs_ioctl_tree_with_default_device);
|
||||
Test.add_func ("/umockdev-testbed-vala/usbfs_ioctl_tree_override_default_device", t_usbfs_ioctl_tree_override_default_device);
|
||||
Test.add_func ("/umockdev-testbed-vala/usbfs_ioctl_tree_xz", t_usbfs_ioctl_tree_xz);
|
@ -1,12 +0,0 @@
|
||||
diff -ru3 umockdev-0.13.1/tests/test-umockdev.c umockdev-0.13.1-new/tests/test-umockdev.c
|
||||
--- umockdev-0.13.1/tests/test-umockdev.c 2019-08-18 20:39:39.708262517 +0300
|
||||
+++ umockdev-0.13.1-new/tests/test-umockdev.c 2019-08-18 21:04:27.688761503 +0300
|
||||
@@ -1084,7 +1084,7 @@
|
||||
|
||||
/* sys/ in other dir should not be trapped */
|
||||
errno = 0;
|
||||
- dirfd = open("/run", O_RDONLY | O_DIRECTORY);
|
||||
+ dirfd = open("/tmp", O_RDONLY | O_DIRECTORY);
|
||||
g_assert_cmpint(openat(dirfd, "sys", O_RDONLY), <, 0);
|
||||
g_assert_cmpint(errno, ==, ENOENT);
|
||||
g_assert_cmpint(openat64(dirfd, "sys", O_RDONLY), <, 0);
|
@ -1,17 +1,19 @@
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
# Note: If `{ static = false; shared = false; }`, upstream's default is used
|
||||
# (which is building both static and shared as of zlib 1.2.11).
|
||||
, shared ? true
|
||||
, shared ? !stdenv.hostPlatform.isStatic
|
||||
, static ? true
|
||||
# If true, a separate .static ouput is created and the .a is moved there.
|
||||
# In this case `pkg-config` auto detection does not currently work if the
|
||||
# .static output is given as `buildInputs` to another package (#66461), because
|
||||
# the `.pc` file lists only the main output's lib dir.
|
||||
# If false, and if `{ static = true; }`, the .a stays in the main output.
|
||||
, splitStaticOutput ? static
|
||||
, splitStaticOutput ? shared && static
|
||||
}:
|
||||
|
||||
# Without either the build will actually still succeed because the build
|
||||
# system makes an arbitrary choice, but we shouldn't be so indecisive.
|
||||
assert shared || static;
|
||||
|
||||
# Note: this package is used for bootstrapping fetchurl, and thus
|
||||
# cannot use fetchpatch! All mutable patches (generated by GitHub or
|
||||
# cgit) that are needed here should be included directly in Nixpkgs as
|
||||
|
@ -2,7 +2,7 @@
|
||||
, fetchFromGitHub, fetchurl, zlib, autoreconfHook, gettext
|
||||
# Enabling all targets increases output size to a multiple.
|
||||
, withAllTargets ? false, libbfd, libopcodes
|
||||
, enableShared ? true
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
, noSysDirs
|
||||
, gold ? !stdenv.buildPlatform.isDarwin || stdenv.hostPlatform == stdenv.targetPlatform
|
||||
, bison ? null
|
||||
|
@ -5,8 +5,8 @@
|
||||
, Security
|
||||
, callPackage
|
||||
|
||||
, enableShared ? true
|
||||
, enableStatic ? false
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
, webUISupport ? false
|
||||
}:
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ stdenv, appleDerivation, lib
|
||||
, enableStatic ? stdenv.targetPlatform.isiOS
|
||||
, enableShared ? !stdenv.targetPlatform.isiOS
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
appleDerivation {
|
||||
|
@ -1,5 +1,5 @@
|
||||
{ stdenv, lib, buildPackages, fetchurl, fetchFromGitLab
|
||||
, enableStatic ? false
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
, enableMinimal ? false
|
||||
# Allow forcing musl without switching stdenv itself, e.g. for our bootstrapping:
|
||||
# nix build -f pkgs/top-level/release.nix stdenvBootstrapTools.x86_64-linux.dist
|
||||
|
@ -1,5 +1,9 @@
|
||||
{ stdenv, lib, buildPackages, fetchurl, attr, perl, pam
|
||||
, static ? stdenv.targetPlatform.isStatic }:
|
||||
{ stdenv, lib, buildPackages, fetchurl, attr, perl
|
||||
, usePam ? !isStatic, pam ? null
|
||||
, isStatic ? stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
assert usePam -> pam != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libcap";
|
||||
@ -10,21 +14,21 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1qf80lifygbnxwvqjf8jz5j24n6fqqx4ixnkbf76xs2vrmcq664j";
|
||||
};
|
||||
|
||||
patches = lib.optional static ./no-shared-lib.patch;
|
||||
patches = lib.optional isStatic ./no-shared-lib.patch;
|
||||
|
||||
outputs = [ "out" "dev" "lib" "man" "doc" ]
|
||||
++ lib.optional (pam != null) "pam";
|
||||
++ lib.optional usePam "pam";
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
nativeBuildInputs = [ perl ];
|
||||
|
||||
buildInputs = [ pam ];
|
||||
buildInputs = lib.optional usePam pam;
|
||||
|
||||
propagatedBuildInputs = [ attr ];
|
||||
|
||||
makeFlags = [
|
||||
"lib=lib"
|
||||
"PAM_CAP=${if pam == null then "no" else "yes"}"
|
||||
"PAM_CAP=${if usePam then "yes" else "no"}"
|
||||
"BUILD_CC=$(CC_FOR_BUILD)"
|
||||
"CC:=$(CC)"
|
||||
];
|
||||
@ -48,10 +52,10 @@ stdenv.mkDerivation rec {
|
||||
installFlags = [ "RAISE_SETFCAP=no" ];
|
||||
|
||||
postInstall = ''
|
||||
${lib.optionalString (!static) ''rm "$lib"/lib/*.a''}
|
||||
${lib.optionalString (!isStatic) ''rm "$lib"/lib/*.a''}
|
||||
mkdir -p "$doc/share/doc/${pname}-${version}"
|
||||
cp License "$doc/share/doc/${pname}-${version}/"
|
||||
'' + stdenv.lib.optionalString (pam != null) ''
|
||||
'' + stdenv.lib.optionalString usePam ''
|
||||
mkdir -p "$pam/lib/security"
|
||||
mv "$lib"/lib/security "$pam/lib"
|
||||
'';
|
||||
|
@ -1,4 +1,6 @@
|
||||
{ buildGoModule, fetchFromGitHub, lib, enableStatic ? false }:
|
||||
{ stdenv, buildGoModule, fetchFromGitHub, lib
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "gobetween";
|
||||
|
21
pkgs/tools/audio/beets/badfiles-plugin-nix-paths.patch
Normal file
21
pkgs/tools/audio/beets/badfiles-plugin-nix-paths.patch
Normal file
@ -0,0 +1,21 @@
|
||||
diff --git i/beetsplug/badfiles.py w/beetsplug/badfiles.py
|
||||
index 36b45de3..5208b696 100644
|
||||
--- i/beetsplug/badfiles.py
|
||||
+++ w/beetsplug/badfiles.py
|
||||
@@ -71,14 +71,14 @@ class BadFiles(BeetsPlugin):
|
||||
return status, errors, [line for line in output.split("\n") if line]
|
||||
|
||||
def check_mp3val(self, path):
|
||||
- status, errors, output = self.run_command(["mp3val", path])
|
||||
+ status, errors, output = self.run_command(["@mp3val@/bin/mp3val", path])
|
||||
if status == 0:
|
||||
output = [line for line in output if line.startswith("WARNING:")]
|
||||
errors = len(output)
|
||||
return status, errors, output
|
||||
|
||||
def check_flac(self, path):
|
||||
- return self.run_command(["flac", "-wst", path])
|
||||
+ return self.run_command(["@flac@/bin/flac", "-wst", path])
|
||||
|
||||
def check_custom(self, command):
|
||||
def checker(path):
|
43
pkgs/tools/audio/beets/bash-completion-always-print.patch
Normal file
43
pkgs/tools/audio/beets/bash-completion-always-print.patch
Normal file
@ -0,0 +1,43 @@
|
||||
diff --git i/beets/ui/commands.py w/beets/ui/commands.py
|
||||
index 4d010f4b..0b023585 100755
|
||||
--- i/beets/ui/commands.py
|
||||
+++ w/beets/ui/commands.py
|
||||
@@ -1741,20 +1741,6 @@ default_commands.append(config_cmd)
|
||||
def print_completion(*args):
|
||||
for line in completion_script(default_commands + plugins.commands()):
|
||||
print_(line, end=u'')
|
||||
- if not any(map(os.path.isfile, BASH_COMPLETION_PATHS)):
|
||||
- log.warning(u'Warning: Unable to find the bash-completion package. '
|
||||
- u'Command line completion might not work.')
|
||||
-
|
||||
-BASH_COMPLETION_PATHS = map(syspath, [
|
||||
- u'/etc/bash_completion',
|
||||
- u'/usr/share/bash-completion/bash_completion',
|
||||
- u'/usr/local/share/bash-completion/bash_completion',
|
||||
- # SmartOS
|
||||
- u'/opt/local/share/bash-completion/bash_completion',
|
||||
- # Homebrew (before bash-completion2)
|
||||
- u'/usr/local/etc/bash_completion',
|
||||
-])
|
||||
-
|
||||
|
||||
def completion_script(commands):
|
||||
"""Yield the full completion shell script as strings.
|
||||
diff --git i/test/test_ui.py w/test/test_ui.py
|
||||
index 5cfed1fd..9d3dc458 100644
|
||||
--- i/test/test_ui.py
|
||||
+++ w/test/test_ui.py
|
||||
@@ -1230,12 +1230,7 @@ class CompletionTest(_common.TestCase, TestHelper):
|
||||
stdout=subprocess.PIPE, env=env)
|
||||
|
||||
# Load bash_completion library.
|
||||
- for path in commands.BASH_COMPLETION_PATHS:
|
||||
- if os.path.exists(util.syspath(path)):
|
||||
- bash_completion = path
|
||||
- break
|
||||
- else:
|
||||
- self.skipTest(u'bash-completion script not found')
|
||||
+ self.skipTest(u'bash-completion script not found')
|
||||
try:
|
||||
with open(util.syspath(bash_completion), 'rb') as f:
|
||||
tester.stdin.writelines(f)
|
@ -1,55 +0,0 @@
|
||||
From 771ce704ebeac4cd9bd74b3ddde9fb01f3dc7eb4 Mon Sep 17 00:00:00 2001
|
||||
From: wisp3rwind <17089248+wisp3rwind@users.noreply.github.com>
|
||||
Date: Tue, 9 Jun 2020 19:34:31 +0200
|
||||
Subject: [PATCH] compatibility with breaking changes to the ast module
|
||||
|
||||
new in 3.10, also backported to 3.8 and 3.9: https://github.com/python/cpython/pull/20649
|
||||
In fact, our generation of some Literals has been invalid since Python
|
||||
3.4, fix that too.
|
||||
---
|
||||
beets/util/functemplate.py | 29 ++++++++++++++++++++---------
|
||||
1 file changed, 20 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/beets/util/functemplate.py b/beets/util/functemplate.py
|
||||
index af22b790..266534a9 100644
|
||||
--- a/beets/util/functemplate.py
|
||||
+++ b/beets/util/functemplate.py
|
||||
@@ -73,15 +73,26 @@ def ex_literal(val):
|
||||
"""An int, float, long, bool, string, or None literal with the given
|
||||
value.
|
||||
"""
|
||||
- if val is None:
|
||||
- return ast.Name('None', ast.Load())
|
||||
- elif isinstance(val, six.integer_types):
|
||||
- return ast.Num(val)
|
||||
- elif isinstance(val, bool):
|
||||
- return ast.Name(bytes(val), ast.Load())
|
||||
- elif isinstance(val, six.string_types):
|
||||
- return ast.Str(val)
|
||||
- raise TypeError(u'no literal for {0}'.format(type(val)))
|
||||
+ if sys.version_info[:2] < (3, 4):
|
||||
+ if val is None:
|
||||
+ return ast.Name('None', ast.Load())
|
||||
+ elif isinstance(val, six.integer_types):
|
||||
+ return ast.Num(val)
|
||||
+ elif isinstance(val, bool):
|
||||
+ return ast.Name(bytes(val), ast.Load())
|
||||
+ elif isinstance(val, six.string_types):
|
||||
+ return ast.Str(val)
|
||||
+ raise TypeError(u'no literal for {0}'.format(type(val)))
|
||||
+ elif sys.version_info[:2] < (3, 6):
|
||||
+ if val in [None, True, False]:
|
||||
+ return ast.NameConstant(val)
|
||||
+ elif isinstance(val, six.integer_types):
|
||||
+ return ast.Num(val)
|
||||
+ elif isinstance(val, six.string_types):
|
||||
+ return ast.Str(val)
|
||||
+ raise TypeError(u'no literal for {0}'.format(type(val)))
|
||||
+ else:
|
||||
+ return ast.Constant(val)
|
||||
|
||||
|
||||
def ex_varassign(name, expr):
|
||||
--
|
||||
2.27.0
|
||||
|
43
pkgs/tools/audio/beets/convert-plugin-ffmpeg-path.patch
Normal file
43
pkgs/tools/audio/beets/convert-plugin-ffmpeg-path.patch
Normal file
@ -0,0 +1,43 @@
|
||||
diff --git i/beetsplug/convert.py w/beetsplug/convert.py
|
||||
index 70363f6e..2962aa4f 100644
|
||||
--- i/beetsplug/convert.py
|
||||
+++ w/beetsplug/convert.py
|
||||
@@ -81,7 +81,7 @@ def get_format(fmt=None):
|
||||
command = config['convert']['command'].as_str()
|
||||
elif 'opts' in keys:
|
||||
# Undocumented option for backwards compatibility with < 1.3.1.
|
||||
- command = u'ffmpeg -i $source -y {0} $dest'.format(
|
||||
+ command = u'@ffmpeg@/bin/ffmpeg -i $source -y {0} $dest'.format(
|
||||
config['convert']['opts'].as_str()
|
||||
)
|
||||
if 'extension' in keys:
|
||||
@@ -121,22 +121,22 @@ class ConvertPlugin(BeetsPlugin):
|
||||
u'id3v23': u'inherit',
|
||||
u'formats': {
|
||||
u'aac': {
|
||||
- u'command': u'ffmpeg -i $source -y -vn -acodec aac '
|
||||
+ u'command': u'@ffmpeg@/bin/ffmpeg -i $source -y -vn -acodec aac '
|
||||
u'-aq 1 $dest',
|
||||
u'extension': u'm4a',
|
||||
},
|
||||
u'alac': {
|
||||
- u'command': u'ffmpeg -i $source -y -vn -acodec alac $dest',
|
||||
+ u'command': u'@ffmpeg@/bin/ffmpeg -i $source -y -vn -acodec alac $dest',
|
||||
u'extension': u'm4a',
|
||||
},
|
||||
- u'flac': u'ffmpeg -i $source -y -vn -acodec flac $dest',
|
||||
- u'mp3': u'ffmpeg -i $source -y -vn -aq 2 $dest',
|
||||
+ u'flac': u'@ffmpeg@/bin/ffmpeg -i $source -y -vn -acodec flac $dest',
|
||||
+ u'mp3': u'@ffmpeg@/bin/ffmpeg -i $source -y -vn -aq 2 $dest',
|
||||
u'opus':
|
||||
- u'ffmpeg -i $source -y -vn -acodec libopus -ab 96k $dest',
|
||||
+ u'@ffmpeg@/bin/ffmpeg -i $source -y -vn -acodec libopus -ab 96k $dest',
|
||||
u'ogg':
|
||||
- u'ffmpeg -i $source -y -vn -acodec libvorbis -aq 3 $dest',
|
||||
+ u'@ffmpeg@/bin/ffmpeg -i $source -y -vn -acodec libvorbis -aq 3 $dest',
|
||||
u'wma':
|
||||
- u'ffmpeg -i $source -y -vn -acodec wmav2 -vn $dest',
|
||||
+ u'@ffmpeg@/bin/ffmpeg -i $source -y -vn -acodec wmav2 -vn $dest',
|
||||
},
|
||||
u'max_bitrate': 500,
|
||||
u'auto': False,
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, writeScript, glibcLocales, diffPlugins
|
||||
{ stdenv, lib, fetchFromGitHub, writeScript, glibcLocales, diffPlugins, substituteAll
|
||||
, pythonPackages, imagemagick, gobject-introspection, gst_all_1
|
||||
, runtimeShell
|
||||
, fetchpatch
|
||||
@ -6,61 +6,70 @@
|
||||
# Attributes needed for tests of the external plugins
|
||||
, callPackage, beets
|
||||
|
||||
, enableAbsubmit ? stdenv.lib.elem stdenv.hostPlatform.system essentia-extractor.meta.platforms, essentia-extractor ? null
|
||||
, enableAcousticbrainz ? true
|
||||
, enableAcoustid ? true
|
||||
, enableBadfiles ? true, flac ? null, mp3val ? null
|
||||
, enableConvert ? true, ffmpeg_3 ? null
|
||||
, enableDiscogs ? true
|
||||
, enableEmbyupdate ? true
|
||||
, enableFetchart ? true
|
||||
, enableGmusic ? true
|
||||
, enableKeyfinder ? true, keyfinder-cli ? null
|
||||
, enableKodiupdate ? true
|
||||
, enableLastfm ? true
|
||||
, enableLoadext ? true
|
||||
, enableMpd ? true
|
||||
, enablePlaylist ? true
|
||||
, enableReplaygain ? true, bs1770gain ? null
|
||||
, enableSonosUpdate ? true
|
||||
, enableSubsonicupdate ? true
|
||||
, enableThumbnails ? true
|
||||
, enableWeb ? true
|
||||
, enableAbsubmit ? lib.elem stdenv.hostPlatform.system essentia-extractor.meta.platforms, essentia-extractor ? null
|
||||
, enableAcousticbrainz ? true
|
||||
, enableAcoustid ? true
|
||||
, enableBadfiles ? true, flac ? null, mp3val ? null
|
||||
, enableBeatport ? true
|
||||
, enableBpsync ? true
|
||||
, enableConvert ? true, ffmpeg ? null
|
||||
, enableDeezer ? true
|
||||
, enableDiscogs ? true
|
||||
, enableEmbyupdate ? true
|
||||
, enableFetchart ? true
|
||||
, enableGmusic ? true
|
||||
, enableKeyfinder ? true, keyfinder-cli ? null
|
||||
, enableKodiupdate ? true
|
||||
, enableLastfm ? true
|
||||
, enableLoadext ? true
|
||||
, enableMpd ? true
|
||||
, enablePlaylist ? true
|
||||
, enableReplaygain ? true
|
||||
, enableSonosUpdate ? true
|
||||
, enableSubsonicplaylist ? true
|
||||
, enableSubsonicupdate ? true
|
||||
, enableThumbnails ? true
|
||||
, enableWeb ? true
|
||||
|
||||
# External plugins
|
||||
, enableAlternatives ? false
|
||||
, enableCheck ? false, liboggz ? null
|
||||
, enableCopyArtifacts ? false
|
||||
, enableExtraFiles ? false
|
||||
, enableAlternatives ? false
|
||||
, enableCheck ? false, liboggz ? null
|
||||
, enableCopyArtifacts ? false
|
||||
, enableExtraFiles ? false
|
||||
|
||||
, bashInteractive, bash-completion
|
||||
}:
|
||||
|
||||
assert enableAbsubmit -> essentia-extractor != null;
|
||||
assert enableAcoustid -> pythonPackages.pyacoustid != null;
|
||||
assert enableAbsubmit -> essentia-extractor != null;
|
||||
assert enableAcoustid -> pythonPackages.pyacoustid != null;
|
||||
assert enableBadfiles -> flac != null && mp3val != null;
|
||||
assert enableBeatport -> pythonPackages.requests_oauthlib != null;
|
||||
assert enableBpsync -> enableBeatport;
|
||||
assert enableCheck -> flac != null && mp3val != null && liboggz != null;
|
||||
assert enableConvert -> ffmpeg_3 != null;
|
||||
assert enableDiscogs -> pythonPackages.discogs_client != null;
|
||||
assert enableFetchart -> pythonPackages.responses != null;
|
||||
assert enableGmusic -> pythonPackages.gmusicapi != null;
|
||||
assert enableKeyfinder -> keyfinder-cli != null;
|
||||
assert enableLastfm -> pythonPackages.pylast != null;
|
||||
assert enableMpd -> pythonPackages.mpd2 != null;
|
||||
assert enableReplaygain -> bs1770gain != null;
|
||||
assert enableSonosUpdate -> pythonPackages.soco != null;
|
||||
assert enableThumbnails -> pythonPackages.pyxdg != null;
|
||||
assert enableWeb -> pythonPackages.flask != null;
|
||||
assert enableConvert -> ffmpeg != null;
|
||||
assert enableDiscogs -> pythonPackages.discogs_client != null;
|
||||
assert enableFetchart -> pythonPackages.responses != null;
|
||||
assert enableGmusic -> pythonPackages.gmusicapi != null;
|
||||
assert enableKeyfinder -> keyfinder-cli != null;
|
||||
assert enableLastfm -> pythonPackages.pylast != null;
|
||||
assert enableMpd -> pythonPackages.mpd2 != null;
|
||||
assert enableReplaygain -> ffmpeg != null;
|
||||
assert enableSonosUpdate -> pythonPackages.soco != null;
|
||||
assert enableThumbnails -> pythonPackages.pyxdg != null;
|
||||
assert enableWeb -> pythonPackages.flask != null;
|
||||
|
||||
with stdenv.lib;
|
||||
with lib;
|
||||
|
||||
let
|
||||
optionalPlugins = {
|
||||
absubmit = enableAbsubmit;
|
||||
acousticbrainz = enableAcousticbrainz;
|
||||
badfiles = enableBadfiles;
|
||||
beatport = enableBeatport;
|
||||
bpsync = enableBpsync;
|
||||
chroma = enableAcoustid;
|
||||
convert = enableConvert;
|
||||
deezer = enableDeezer;
|
||||
discogs = enableDiscogs;
|
||||
embyupdate = enableEmbyupdate;
|
||||
fetchart = enableFetchart;
|
||||
@ -75,18 +84,19 @@ let
|
||||
playlist = enablePlaylist;
|
||||
replaygain = enableReplaygain;
|
||||
sonosupdate = enableSonosUpdate;
|
||||
subsonicplaylist = enableSubsonicplaylist;
|
||||
subsonicupdate = enableSubsonicupdate;
|
||||
thumbnails = enableThumbnails;
|
||||
web = enableWeb;
|
||||
};
|
||||
|
||||
pluginsWithoutDeps = [
|
||||
"beatport" "bench" "bpd" "bpm" "bucket" "cue" "duplicates" "edit" "embedart"
|
||||
"export" "filefilter" "freedesktop" "fromfilename" "ftintitle" "fuzzy"
|
||||
"bench" "bpd" "bpm" "bucket" "cue" "duplicates" "edit" "embedart"
|
||||
"export" "filefilter" "fish" "freedesktop" "fromfilename" "ftintitle" "fuzzy"
|
||||
"hook" "ihate" "importadded" "importfeeds" "info" "inline" "ipfs" "lyrics"
|
||||
"mbcollection" "mbsubmit" "mbsync" "metasync" "missing" "permissions" "play"
|
||||
"mbcollection" "mbsubmit" "mbsync" "metasync" "missing" "parentwork" "permissions" "play"
|
||||
"plexupdate" "random" "rewrite" "scrub" "smartplaylist" "spotify" "the"
|
||||
"types" "zero"
|
||||
"types" "unimported" "zero"
|
||||
];
|
||||
|
||||
enabledOptionalPlugins = attrNames (filterAttrs (_: id) optionalPlugins);
|
||||
@ -102,28 +112,33 @@ let
|
||||
enableAlternatives = false;
|
||||
enableCopyArtifacts = false;
|
||||
enableExtraFiles = false;
|
||||
}).overrideAttrs (stdenv.lib.const {
|
||||
}).overrideAttrs (const {
|
||||
doInstallCheck = false;
|
||||
});
|
||||
|
||||
pluginArgs = externalTestArgs // { inherit pythonPackages; };
|
||||
|
||||
plugins = {
|
||||
alternatives = callPackage ./alternatives-plugin.nix pluginArgs;
|
||||
check = callPackage ./check-plugin.nix pluginArgs;
|
||||
copyartifacts = callPackage ./copyartifacts-plugin.nix pluginArgs;
|
||||
extrafiles = callPackage ./extrafiles-plugin.nix pluginArgs;
|
||||
alternatives = callPackage ./plugins/alternatives.nix pluginArgs;
|
||||
check = callPackage ./plugins/check.nix pluginArgs;
|
||||
copyartifacts = callPackage ./plugins/copyartifacts.nix pluginArgs;
|
||||
extrafiles = callPackage ./plugins/extrafiles.nix pluginArgs;
|
||||
};
|
||||
|
||||
in pythonPackages.buildPythonApplication rec {
|
||||
pname = "beets";
|
||||
version = "1.4.9";
|
||||
# While there is a stable version, 1.4.9, it is more than 1000 commits behind
|
||||
# master and lacks many bug fixes and improvements[1]. Also important,
|
||||
# unstable does not require bs1770gain[2].
|
||||
# [1]: https://discourse.beets.io/t/forming-a-beets-core-team/639
|
||||
# [2]: https://github.com/NixOS/nixpkgs/pull/90504
|
||||
version = "unstable-2020-12-22";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "beetbox";
|
||||
repo = "beets";
|
||||
rev = "v${version}";
|
||||
sha256 = "1qxdqbzvz97zgykzdwn78g2xyxmg0q2jdb12dnjnrwvhmjv67vi8";
|
||||
rev = "53dcb24d10788897f20c341774b474808ec2c0b6";
|
||||
sha256 = "sha256-P++NA13T2TRHW3Se10np8BSe/WRBYAKRte5xKoHKW50=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@ -137,19 +152,25 @@ in pythonPackages.buildPythonApplication rec {
|
||||
pythonPackages.unidecode
|
||||
pythonPackages.gst-python
|
||||
pythonPackages.pygobject3
|
||||
pythonPackages.reflink
|
||||
pythonPackages.confuse
|
||||
pythonPackages.mediafile
|
||||
gobject-introspection
|
||||
] ++ optional enableAbsubmit essentia-extractor
|
||||
++ optional enableAcoustid pythonPackages.pyacoustid
|
||||
++ optional enableBeatport pythonPackages.requests_oauthlib
|
||||
++ optional (enableFetchart
|
||||
|| enableDeezer
|
||||
|| enableEmbyupdate
|
||||
|| enableKodiupdate
|
||||
|| enableLoadext
|
||||
|| enablePlaylist
|
||||
|| enableSubsonicplaylist
|
||||
|| enableSubsonicupdate
|
||||
|| enableAcousticbrainz)
|
||||
pythonPackages.requests
|
||||
++ optional enableCheck plugins.check
|
||||
++ optional enableConvert ffmpeg_3
|
||||
++ optional enableConvert ffmpeg
|
||||
++ optional enableDiscogs pythonPackages.discogs_client
|
||||
++ optional enableGmusic pythonPackages.gmusicapi
|
||||
++ optional enableKeyfinder keyfinder-cli
|
||||
@ -187,41 +208,35 @@ in pythonPackages.buildPythonApplication rec {
|
||||
];
|
||||
|
||||
patches = [
|
||||
./replaygain-default-bs1770gain.patch
|
||||
# Bash completion fix for Nix
|
||||
./bash-completion-always-print.patch
|
||||
# From some reason upstream assumes the program 'keyfinder-cli' is located
|
||||
# in the path as `KeyFinder`
|
||||
./keyfinder-default-bin.patch
|
||||
./mutagen-1.43.patch
|
||||
(fetchpatch {
|
||||
# Fixes failing testcases around the werkzeug component; can dropped after 1.4.9
|
||||
url = "https://github.com/beetbox/beets/commit/d43d54e21cde97f57f19486925ab56b419254cc8.patch";
|
||||
sha256 = "13n2gzmcgfi0m2ycl2r1hpczgksplnkc3y6b66vg57rx5y8nnv5c";
|
||||
]
|
||||
# We need to force ffmpeg as the default, since we do not package
|
||||
# bs1770gain, and set the absolute path there, to avoid impurities.
|
||||
++ lib.optional enableReplaygain (substituteAll {
|
||||
src = ./replaygain-default-ffmpeg.patch;
|
||||
ffmpeg = getBin ffmpeg;
|
||||
})
|
||||
# Put absolute Nix paths in place
|
||||
++ lib.optional enableConvert (substituteAll {
|
||||
src = ./convert-plugin-ffmpeg-path.patch;
|
||||
ffmpeg = getBin ffmpeg;
|
||||
})
|
||||
++ lib.optional enableBadfiles (substituteAll {
|
||||
src = ./badfiles-plugin-nix-paths.patch;
|
||||
inherit mp3val flac;
|
||||
})
|
||||
;
|
||||
|
||||
# Fixes 548 tests due to breaking changes to the ast module
|
||||
# https://github.com/beetbox/beets/pull/3621
|
||||
# Can be dropped after 1.4.9
|
||||
./compatibility-with-breaking-changes-to-the-ast-module.patch
|
||||
];
|
||||
|
||||
# Disable failing tests
|
||||
postPatch = ''
|
||||
sed -i -e '/assertIn.*item.*path/d' test/test_info.py
|
||||
echo echo completion tests passed > test/rsrc/test_completion.sh
|
||||
|
||||
sed -i -e '/^BASH_COMPLETION_PATHS *=/,/^])$/ {
|
||||
/^])$/i u"${completion}"
|
||||
}' beets/ui/commands.py
|
||||
'' + optionalString enableBadfiles ''
|
||||
sed -i -e '/self\.run_command(\[/ {
|
||||
s,"flac","${flac.bin}/bin/flac",
|
||||
s,"mp3val","${mp3val}/bin/mp3val",
|
||||
}' beetsplug/badfiles.py
|
||||
'' + optionalString enableConvert ''
|
||||
sed -i -e 's,\(util\.command_output(\)\([^)]\+\)),\1[b"${ffmpeg_3.bin}/bin/ffmpeg" if args[0] == b"ffmpeg" else args[0]] + \2[1:]),' beetsplug/convert.py
|
||||
'' + optionalString enableReplaygain ''
|
||||
sed -i -re '
|
||||
s!^( *cmd *= *b?['\'''"])(bs1770gain['\'''"])!\1${bs1770gain}/bin/\2!
|
||||
' beetsplug/replaygain.py
|
||||
sed -i -e 's/if has_program.*bs1770gain.*:/if True:/' \
|
||||
test/test_replaygain.py
|
||||
sed -i -e 's/len(mf.images)/0/' test/test_zero.py
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
@ -281,7 +296,7 @@ in pythonPackages.buildPythonApplication rec {
|
||||
description = "Music tagger and library organizer";
|
||||
homepage = "http://beets.io";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ aszlig domenkozar pjones ];
|
||||
maintainers = with maintainers; [ aszlig domenkozar doronbehar lovesegfault pjones ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
diff --git a/beetsplug/keyfinder.py b/beetsplug/keyfinder.py
|
||||
index 34a4abc..59e8539 100644
|
||||
index 702003f0..08689cd8 100644
|
||||
--- a/beetsplug/keyfinder.py
|
||||
+++ b/beetsplug/keyfinder.py
|
||||
@@ -30,7 +30,7 @@ class KeyFinderPlugin(BeetsPlugin):
|
||||
@@ -31,7 +31,7 @@ class KeyFinderPlugin(BeetsPlugin):
|
||||
def __init__(self):
|
||||
super(KeyFinderPlugin, self).__init__()
|
||||
self.config.add({
|
||||
@ -11,18 +11,8 @@ index 34a4abc..59e8539 100644
|
||||
u'auto': True,
|
||||
u'overwrite': False,
|
||||
})
|
||||
@@ -59,8 +59,7 @@ class KeyFinderPlugin(BeetsPlugin):
|
||||
continue
|
||||
|
||||
try:
|
||||
- output = util.command_output([bin, '-f',
|
||||
- util.syspath(item.path)])
|
||||
+ output = util.command_output([bin, util.syspath(item.path)])
|
||||
except (subprocess.CalledProcessError, OSError) as exc:
|
||||
self._log.error(u'execution failed: {0}', exc)
|
||||
continue
|
||||
diff --git a/test/test_keyfinder.py b/test/test_keyfinder.py
|
||||
index 57e2bcd..c1ee916 100644
|
||||
index c8735e47..d7d670a4 100644
|
||||
--- a/test/test_keyfinder.py
|
||||
+++ b/test/test_keyfinder.py
|
||||
@@ -44,7 +44,7 @@ class KeyFinderTest(unittest.TestCase, TestHelper):
|
||||
@ -31,6 +21,6 @@ index 57e2bcd..c1ee916 100644
|
||||
command_output.assert_called_with(
|
||||
- ['KeyFinder', '-f', util.syspath(item.path)])
|
||||
+ ['keyfinder-cli', util.syspath(item.path)])
|
||||
|
||||
|
||||
def test_add_key_on_import(self, command_output):
|
||||
command_output.return_value = 'dbm'
|
||||
command_output.return_value = util.CommandOutput(b"dbm", b"")
|
||||
|
@ -1,40 +0,0 @@
|
||||
Backport
|
||||
https://github.com/beetbox/mediafile/commit/b3343c4ee08d1251ae5e2344401a2f5892b4e868
|
||||
https://github.com/beetbox/mediafile/commit/d2fc3b59f77c515b02dfe7ad936f89264375d2b4
|
||||
to Beets 1.4.9.
|
||||
|
||||
diff --git i/setup.py w/setup.py
|
||||
index 79278f8b..b8d60687 100755
|
||||
--- i/setup.py
|
||||
+++ w/setup.py
|
||||
@@ -87,7 +87,7 @@ setup(
|
||||
|
||||
install_requires=[
|
||||
'six>=1.9',
|
||||
- 'mutagen>=1.33',
|
||||
+ 'mutagen>=1.43',
|
||||
'unidecode',
|
||||
'musicbrainzngs>=0.4',
|
||||
'pyyaml',
|
||||
diff --git i/test/test_mediafile.py w/test/test_mediafile.py
|
||||
index 36a2c53a..0ddde44e 100644
|
||||
--- i/test/test_mediafile.py
|
||||
+++ w/test/test_mediafile.py
|
||||
@@ -888,7 +888,7 @@ class WavpackTest(ReadWriteTestBase, unittest.TestCase):
|
||||
'bitrate': 109312,
|
||||
'format': u'WavPack',
|
||||
'samplerate': 44100,
|
||||
- 'bitdepth': 0,
|
||||
+ 'bitdepth': 16,
|
||||
'channels': 1,
|
||||
}
|
||||
|
||||
@@ -912,7 +912,7 @@ class AIFFTest(ReadWriteTestBase, unittest.TestCase):
|
||||
'bitrate': 705600,
|
||||
'format': u'AIFF',
|
||||
'samplerate': 44100,
|
||||
- 'bitdepth': 0,
|
||||
+ 'bitdepth': 16,
|
||||
'channels': 1,
|
||||
}
|
||||
|
0
pkgs/tools/audio/beets/copyartifacts-plugin.nix → pkgs/tools/audio/beets/plugins/copyartifacts.nix
0
pkgs/tools/audio/beets/copyartifacts-plugin.nix → pkgs/tools/audio/beets/plugins/copyartifacts.nix
@ -1,17 +0,0 @@
|
||||
diff --git a/beetsplug/replaygain.py b/beetsplug/replaygain.py
|
||||
index 40b3a3a..9b54a5a 100644
|
||||
--- a/beetsplug/replaygain.py
|
||||
+++ b/beetsplug/replaygain.py
|
||||
@@ -627,11 +627,10 @@ class ReplayGainPlugin(BeetsPlugin):
|
||||
super(ReplayGainPlugin, self).__init__()
|
||||
self.import_stages = [self.imported]
|
||||
|
||||
- # default backend is 'command' for backward-compatibility.
|
||||
self.config.add({
|
||||
'overwrite': False,
|
||||
'auto': True,
|
||||
- 'backend': u'command',
|
||||
+ 'backend': u'bs1770gain',
|
||||
'targetlevel': 89,
|
||||
})
|
||||
|
26
pkgs/tools/audio/beets/replaygain-default-ffmpeg.patch
Normal file
26
pkgs/tools/audio/beets/replaygain-default-ffmpeg.patch
Normal file
@ -0,0 +1,26 @@
|
||||
diff --git i/beetsplug/replaygain.py w/beetsplug/replaygain.py
|
||||
index 9d6fa23c..c5800039 100644
|
||||
--- i/beetsplug/replaygain.py
|
||||
+++ w/beetsplug/replaygain.py
|
||||
@@ -391,7 +391,7 @@ class FfmpegBackend(Backend):
|
||||
|
||||
def __init__(self, config, log):
|
||||
super(FfmpegBackend, self).__init__(config, log)
|
||||
- self._ffmpeg_path = "ffmpeg"
|
||||
+ self._ffmpeg_path = "@ffmpeg@/bin/ffmpeg"
|
||||
|
||||
# check that ffmpeg is installed
|
||||
try:
|
||||
@@ -1228,11 +1228,10 @@ class ReplayGainPlugin(BeetsPlugin):
|
||||
def __init__(self):
|
||||
super(ReplayGainPlugin, self).__init__()
|
||||
|
||||
- # default backend is 'command' for backward-compatibility.
|
||||
self.config.add({
|
||||
'overwrite': False,
|
||||
'auto': True,
|
||||
- 'backend': u'command',
|
||||
+ 'backend': u'ffmpeg',
|
||||
'threads': cpu_count(),
|
||||
'parallel_on_import': False,
|
||||
'per_disc': False,
|
@ -1,5 +1,5 @@
|
||||
{ stdenv, fetchurl
|
||||
, linkStatic ? (stdenv.hostPlatform.system == "i686-cygwin")
|
||||
, linkStatic ? with stdenv.hostPlatform; isStatic || isCygwin
|
||||
, autoreconfHook
|
||||
}:
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub, valgrind, fetchpatch
|
||||
, enableStatic ? false, enableShared ? true
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -1,4 +1,6 @@
|
||||
{ stdenv, fetchurl, enableStatic ? false }:
|
||||
{ stdenv, fetchurl
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
# Note: this package is used for bootstrapping fetchurl, and thus
|
||||
# cannot use fetchpatch! All mutable patches (generated by GitHub or
|
||||
|
@ -1,5 +1,7 @@
|
||||
{ stdenv, fetchurl, fetchpatch, lvm2, libuuid, gettext, readline
|
||||
, util-linux, check, enableStatic ? false }:
|
||||
, util-linux, check
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "parted-3.1";
|
||||
|
@ -1,4 +1,5 @@
|
||||
{ stdenv, fetchurl, libpng, static ? false
|
||||
{ stdenv, fetchurl, libpng
|
||||
, static ? stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
# This package comes with its own copy of zlib, libpng and pngxtern
|
||||
|
@ -6,7 +6,7 @@
|
||||
, zlib ? null
|
||||
, szip ? null
|
||||
, mpi ? null
|
||||
, enableShared ? true
|
||||
, enableShared ? !stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
# cpp and mpi options are mutually exclusive
|
||||
|
@ -11,7 +11,7 @@
|
||||
, python3
|
||||
, util-linux
|
||||
, check
|
||||
, enableStatic ? false
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
stdenv, lib, fetchFromGitHub, which,
|
||||
buildPackages,
|
||||
enableStatic ? false,
|
||||
enableStatic ? stdenv.hostPlatform.isStatic,
|
||||
enableMinimal ? false,
|
||||
extraConfig ? ""
|
||||
}:
|
||||
|
@ -1,5 +1,5 @@
|
||||
{ stdenv, lib, fetchurl, glibc, zlib
|
||||
, enableStatic ? false
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
, sftpPath ? "/run/current-system/sw/libexec/sftp-server"
|
||||
}:
|
||||
|
||||
|
@ -22,7 +22,7 @@ common =
|
||||
, confDir
|
||||
, withLibseccomp ? lib.any (lib.meta.platformMatch stdenv.hostPlatform) libseccomp.meta.platforms, libseccomp
|
||||
, withAWS ? !enableStatic && (stdenv.isLinux || stdenv.isDarwin), aws-sdk-cpp
|
||||
, enableStatic ? false
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
, name, suffix ? "", src, patches ? []
|
||||
|
||||
}:
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, lib, fetchurl, openssl, fetchpatch, static ? false }:
|
||||
{ stdenv, lib, fetchurl, openssl, fetchpatch, static ? stdenv.hostPlatform.isStatic }:
|
||||
|
||||
let
|
||||
pkgname = "ipmitool";
|
||||
|
@ -1,5 +1,5 @@
|
||||
{ stdenv, fetchurl, pkgconfig, zlib, kmod, which
|
||||
, static ? stdenv.targetPlatform.isStatic
|
||||
, static ? stdenv.hostPlatform.isStatic
|
||||
, darwin ? null
|
||||
}:
|
||||
|
||||
|
@ -78,6 +78,7 @@ mapAliases ({
|
||||
bittorrentSync = throw "bittorrentSync has been deprecated by resilio-sync."; # added 2019-06-03
|
||||
bittorrentSync14 = throw "bittorrentSync14 has been deprecated by resilio-sync."; # added 2019-06-03
|
||||
bittorrentSync20 = throw "bittorrentSync20 has been deprecated by resilio-sync."; # added 2019-06-03
|
||||
bs1770gain = throw "bs1770gain has been removed from nixpkgs, as it had no maintainer or reverse dependencies."; # added 2021-01-02
|
||||
btc1 = throw "btc1 has been removed, it was abandoned by upstream"; # added 2020-11-03
|
||||
buildPerlPackage = perlPackages.buildPerlPackage; # added 2018-10-12
|
||||
buildGo112Package = throw "buildGo112Package has been removed"; # added 2020-04-26
|
||||
|
@ -15768,9 +15768,9 @@ in
|
||||
|
||||
inherit (kdeApplications.override { libsForQt5 = self; })
|
||||
libkdcraw libkexiv2 libkipi libkomparediff2 libksane libkcddb akonadi-contacts
|
||||
akonadi-calendar akonadi-notes akonadi-search kidentitymanagement kontactinterface
|
||||
kldap akonadi akregator ark bomber bovo dolphin dragon elisa ffmpegthumbs filelight
|
||||
granatier gwenview k3b kaddressbook kalzium kapptemplate kapman kate katomic
|
||||
akonadi-calendar akonadi-notes akonadi-search kaccounts-integration kidentitymanagement
|
||||
kontactinterface kldap akonadi akregator ark bomber bovo dolphin dragon elisa ffmpegthumbs
|
||||
filelight granatier gwenview k3b kaddressbook kalzium kapptemplate kapman kate katomic
|
||||
kblackbox kblocks kbounce kcachegrind kcalc kcharselect kcolorchooser
|
||||
kdenlive kdf kdialog kdiamond keditbookmarks kfind kfloppy kget kgpg khelpcenter
|
||||
kig kigo killbots kitinerary kleopatra klettres klines kmag kmail kmines kmix kmplot
|
||||
@ -15918,6 +15918,8 @@ in
|
||||
# Not a library, but we do want it to be built for every qt version there
|
||||
# is, to allow users to choose the right build if needed.
|
||||
sddm = callPackage ../applications/display-managers/sddm { };
|
||||
|
||||
signond = callPackage ../development/libraries/signond {};
|
||||
};
|
||||
|
||||
qtEnv = qt5.env;
|
||||
@ -20799,8 +20801,6 @@ in
|
||||
|
||||
bristol = callPackage ../applications/audio/bristol { };
|
||||
|
||||
bs1770gain = callPackage ../applications/audio/bs1770gain { };
|
||||
|
||||
bjumblr = callPackage ../applications/audio/bjumblr { };
|
||||
|
||||
bschaffl = callPackage ../applications/audio/bschaffl { };
|
||||
@ -21666,12 +21666,16 @@ in
|
||||
|
||||
wireshark = callPackage ../applications/networking/sniffers/wireshark {
|
||||
inherit (darwin.apple_sdk.frameworks) ApplicationServices SystemConfiguration;
|
||||
libpcap = libpcap.override { withBluez = stdenv.isLinux; };
|
||||
};
|
||||
wireshark-qt = wireshark;
|
||||
|
||||
# The GTK UI is deprecated by upstream. You probably want the QT version.
|
||||
wireshark-gtk = throw "wireshark-gtk is not supported anymore. Use wireshark-qt or wireshark-cli instead.";
|
||||
wireshark-cli = wireshark.override { withQt = false; };
|
||||
wireshark-cli = wireshark.override {
|
||||
withQt = false;
|
||||
libpcap = libpcap.override { withBluez = stdenv.isLinux; };
|
||||
};
|
||||
|
||||
sngrep = callPackage ../applications/networking/sniffers/sngrep {};
|
||||
|
||||
|
@ -112,87 +112,23 @@ in {
|
||||
enableApp = false;
|
||||
};
|
||||
|
||||
ncurses = super.ncurses.override {
|
||||
enableStatic = true;
|
||||
};
|
||||
libxml2 = super.libxml2.override ({
|
||||
enableShared = false;
|
||||
enableStatic = true;
|
||||
} // optionalAttrs super.stdenv.hostPlatform.isDarwin {
|
||||
pythonSupport = false;
|
||||
});
|
||||
zlib = super.zlib.override {
|
||||
static = true;
|
||||
shared = false;
|
||||
splitStaticOutput = false;
|
||||
|
||||
# Don’t use new stdenv zlib because
|
||||
# it doesn’t like the --disable-shared flag
|
||||
stdenv = super.stdenv;
|
||||
};
|
||||
xz = super.xz.override {
|
||||
enableStatic = true;
|
||||
};
|
||||
busybox = super.busybox.override {
|
||||
enableStatic = true;
|
||||
};
|
||||
libiberty = super.libiberty.override {
|
||||
staticBuild = true;
|
||||
};
|
||||
libpfm = super.libpfm.override {
|
||||
enableShared = false;
|
||||
};
|
||||
ipmitool = super.ipmitool.override {
|
||||
static = true;
|
||||
};
|
||||
neon = super.neon.override {
|
||||
static = true;
|
||||
shared = false;
|
||||
};
|
||||
fmt = super.fmt.override {
|
||||
enableShared = false;
|
||||
};
|
||||
gifsicle = super.gifsicle.override {
|
||||
static = true;
|
||||
};
|
||||
bzip2 = super.bzip2.override {
|
||||
linkStatic = true;
|
||||
};
|
||||
optipng = super.optipng.override {
|
||||
static = true;
|
||||
};
|
||||
openblas = super.openblas.override {
|
||||
enableStatic = true;
|
||||
enableShared = false;
|
||||
};
|
||||
mkl = super.mkl.override { enableStatic = true; };
|
||||
nix = super.nix.override { enableStatic = true; };
|
||||
nixUnstable = super.nixUnstable.override { enableStatic = true; };
|
||||
openssl = (super.openssl_1_1.override { static = true; }).overrideAttrs (o: {
|
||||
openssl = super.openssl_1_1.overrideAttrs (o: {
|
||||
# OpenSSL doesn't like the `--enable-static` / `--disable-shared` flags.
|
||||
configureFlags = (removeUnknownConfigureFlags o.configureFlags);
|
||||
});
|
||||
arrow-cpp = super.arrow-cpp.override {
|
||||
enableShared = false;
|
||||
};
|
||||
boost = super.boost.override {
|
||||
enableStatic = true;
|
||||
enableShared = false;
|
||||
|
||||
# Don’t use new stdenv for boost because it doesn’t like the
|
||||
# --disable-shared flag
|
||||
stdenv = super.stdenv;
|
||||
};
|
||||
thrift = super.thrift.override {
|
||||
static = true;
|
||||
twisted = null;
|
||||
};
|
||||
gmp = super.gmp.override {
|
||||
withStatic = true;
|
||||
};
|
||||
gflags = super.gflags.override {
|
||||
enableShared = false;
|
||||
};
|
||||
cdo = super.cdo.override {
|
||||
enable_all_static = true;
|
||||
};
|
||||
@ -202,13 +138,6 @@ in {
|
||||
crc32c = super.crc32c.override {
|
||||
staticOnly = true;
|
||||
};
|
||||
parted = super.parted.override {
|
||||
enableStatic = true;
|
||||
};
|
||||
libiconvReal = super.libiconvReal.override {
|
||||
enableShared = false;
|
||||
enableStatic = true;
|
||||
};
|
||||
perl = super.perl.override {
|
||||
# Don’t use new stdenv zlib because
|
||||
# it doesn’t like the --disable-shared flag
|
||||
@ -220,24 +149,9 @@ in {
|
||||
snappy = super.snappy.override {
|
||||
static = true;
|
||||
};
|
||||
lz4 = super.lz4.override {
|
||||
enableShared = false;
|
||||
enableStatic = true;
|
||||
};
|
||||
libressl = super.libressl.override {
|
||||
buildShared = false;
|
||||
};
|
||||
libjpeg_turbo = super.libjpeg_turbo.override {
|
||||
enableStatic = true;
|
||||
enableShared = false;
|
||||
};
|
||||
|
||||
darwin = super.darwin // {
|
||||
libiconv = super.darwin.libiconv.override {
|
||||
enableShared = false;
|
||||
enableStatic = true;
|
||||
};
|
||||
};
|
||||
|
||||
kmod = super.kmod.override {
|
||||
withStatic = true;
|
||||
@ -260,21 +174,6 @@ in {
|
||||
static = true;
|
||||
};
|
||||
|
||||
llvmPackages_8 = super.llvmPackages_8 // {
|
||||
libraries = super.llvmPackages_8.libraries // rec {
|
||||
libcxxabi = super.llvmPackages_8.libraries.libcxxabi.override {
|
||||
enableShared = false;
|
||||
};
|
||||
libcxx = super.llvmPackages_8.libraries.libcxx.override {
|
||||
enableShared = false;
|
||||
inherit libcxxabi;
|
||||
};
|
||||
libunwind = super.llvmPackages_8.libraries.libunwind.override {
|
||||
enableShared = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ocaml-ng = self.lib.mapAttrs (_: set:
|
||||
if set ? overrideScope' then set.overrideScope' ocamlStaticAdapter else set
|
||||
) super.ocaml-ng;
|
||||
@ -289,13 +188,6 @@ in {
|
||||
# Note: -static doesn’t work on darwin
|
||||
libev = super.libev.override { static = !super.stdenv.hostPlatform.isDarwin; };
|
||||
|
||||
libexecinfo = super.libexecinfo.override { enableShared = false; };
|
||||
|
||||
tree-sitter = super.tree-sitter.override {
|
||||
enableShared = false;
|
||||
enableStatic = true;
|
||||
};
|
||||
|
||||
xorg = super.xorg.overrideScope' (xorgself: xorgsuper: {
|
||||
libX11 = xorgsuper.libX11.overrideAttrs (attrs: {
|
||||
depsBuildBuild = attrs.depsBuildBuild ++ [ (self.buildPackages.stdenv.cc.libc.static or null) ];
|
||||
@ -319,6 +211,4 @@ in {
|
||||
configureFlags = attrs.configureFlags ++ [ "--disable-shared" ];
|
||||
});
|
||||
});
|
||||
|
||||
libcap = super.libcap.override { pam = null; };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user