treewide: convert patch series files to Nix expressions
Nix expressions provide all the features that Quilt series files have, so using those instead is pointless. Also, lib.readPathsFromFile (the function used to read series files) has the following warning: > NOTE: This function is not performant and should be avoided. This also removes some orphaned series files, and unused references to copyPathsToStore (which were probably missed in previous commits where calls to lib.readPathsFromFile were removed)
This commit is contained in:
parent
c25a7cd846
commit
79921889a0
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
mkDerivation, copyPathsToStore, lib, kdepimTeam,
|
||||
mkDerivation, lib, kdepimTeam,
|
||||
extra-cmake-modules, shared-mime-info,
|
||||
boost, kcompletion, kconfigwidgets, kcrash, kdbusaddons, kdesignerplugin,
|
||||
ki18n, kiconthemes, kio, kitemmodels, kwindowsystem, mysql, qttools,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
mkDerivation, copyPathsToStore, lib, kdepimTeam,
|
||||
mkDerivation, lib, kdepimTeam,
|
||||
extra-cmake-modules, kdoctools,
|
||||
grantlee, ki18n, kiconthemes, knewstuff, kservice, kxmlgui, qtbase,
|
||||
}:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
mkDerivation, copyPathsToStore, lib, kdepimTeam,
|
||||
mkDerivation, lib, kdepimTeam,
|
||||
extra-cmake-modules, kdoctools,
|
||||
akonadi, akonadi-contacts, grantlee, grantleetheme, kconfig, kconfigwidgets,
|
||||
kcontacts, ki18n, kiconthemes, kio, libkleo, pimcommon, prison,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
mkDerivation, copyPathsToStore, lib, kdepimTeam,
|
||||
mkDerivation, lib, kdepimTeam,
|
||||
extra-cmake-modules, kdoctools,
|
||||
shared-mime-info,
|
||||
akonadi, akonadi-calendar, akonadi-contacts, akonadi-mime, akonadi-notes,
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
mkDerivation,
|
||||
lib,
|
||||
copyPathsToStore,
|
||||
extra-cmake-modules,
|
||||
plymouth,
|
||||
nixos-icons,
|
||||
|
@ -28,7 +27,9 @@ mkDerivation {
|
|||
name = "breeze-plymouth";
|
||||
nativeBuildInputs = [ extra-cmake-modules ] ++ lib.optionals (logoFile != null) [ imagemagick netpbm perl ];
|
||||
buildInputs = [ plymouth ];
|
||||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
||||
patches = [
|
||||
./install-paths.patch
|
||||
];
|
||||
cmakeFlags = []
|
||||
++ lib.optional (osName != null) "-DDISTRO_NAME=${osName}"
|
||||
++ lib.optional (osVersion != null) "-DDISTRO_VERSION=${osVersion}"
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
install-paths.patch
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
mkDerivation, lib, copyPathsToStore,
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules, kdoctools,
|
||||
|
||||
epoxy,libICE, libSM, libinput, libxkbcommon, udev, wayland, xcb-util-cursor,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
mkDerivation, lib, copyPathsToStore, propagate,
|
||||
mkDerivation, lib, propagate,
|
||||
extra-cmake-modules,
|
||||
kwayland, libXrandr, qtbase, qtx11extras
|
||||
}:
|
||||
|
@ -12,7 +12,9 @@ mkDerivation {
|
|||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ kwayland libXrandr qtx11extras ];
|
||||
outputs = [ "out" "dev" ];
|
||||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
||||
patches = [
|
||||
./libkscreen-backends-path.patch
|
||||
];
|
||||
preConfigure = ''
|
||||
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_LIBKSCREEN_BACKENDS=\"''${!outputBin}/$qtPluginPrefix/kf5/kscreen\""
|
||||
'';
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
libkscreen-backends-path.patch
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
mkDerivation, lib, copyPathsToStore,
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules, kdoctools,
|
||||
|
||||
boost, fontconfig, ibus, libXcursor, libXft, libcanberra_kde, libpulseaudio,
|
||||
|
@ -30,7 +30,10 @@ mkDerivation {
|
|||
ksysguard kwallet kwin plasma-framework plasma-workspace qqc2-desktop-style
|
||||
];
|
||||
|
||||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
||||
patches = [
|
||||
./hwclock-path.patch
|
||||
./tzdir.patch
|
||||
];
|
||||
postPatch = ''
|
||||
sed '1i#include <cmath>' -i kcms/touchpad/src/backends/x11/synapticstouchpad.cpp
|
||||
'';
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
hwclock-path.patch
|
||||
tzdir.patch
|
|
@ -1,4 +1,4 @@
|
|||
{ mkDerivation, lib, copyPathsToStore, fetchurl, qtbase, qtscript, cmake }:
|
||||
{ mkDerivation, lib, fetchurl, qtbase, qtscript, cmake }:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "grantlee";
|
||||
|
@ -14,7 +14,10 @@ mkDerivation rec {
|
|||
buildInputs = [ qtbase qtscript ];
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
||||
patches = [
|
||||
./grantlee-nix-profiles.patch
|
||||
./grantlee-no-canonicalize-filepath.patch
|
||||
];
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
postFixup =
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
grantlee-nix-profiles.patch
|
||||
grantlee-no-canonicalize-filepath.patch
|
|
@ -1,9 +1,11 @@
|
|||
{ mkDerivation, lib, copyPathsToStore, cmake, pkgconfig }:
|
||||
{ mkDerivation, lib, cmake, pkgconfig }:
|
||||
|
||||
mkDerivation {
|
||||
name = "extra-cmake-modules";
|
||||
|
||||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
||||
patches = [
|
||||
./nix-lib-path.patch
|
||||
];
|
||||
|
||||
outputs = [ "out" ]; # this package has no runtime components
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
nix-lib-path.patch
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
mkDerivation, lib, copyPathsToStore, propagate,
|
||||
mkDerivation, lib, propagate,
|
||||
extra-cmake-modules, kcoreaddons, polkit-qt, qttools
|
||||
}:
|
||||
|
||||
|
@ -9,7 +9,9 @@ mkDerivation {
|
|||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ polkit-qt qttools ];
|
||||
propagatedBuildInputs = [ kcoreaddons ];
|
||||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
||||
patches = [
|
||||
./cmake-install-paths.patch
|
||||
];
|
||||
# library stores reference to plugin path,
|
||||
# separating $out from $bin would create a reference cycle
|
||||
outputs = [ "out" "dev" ];
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
cmake-install-paths.patch
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
mkDerivation, lib, copyPathsToStore,
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules,
|
||||
kconfigwidgets, kcoreaddons, kdeclarative, ki18n, kiconthemes, kitemviews,
|
||||
kpackage, kservice, kxmlgui, qtdeclarative,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
mkDerivation, lib, copyPathsToStore,
|
||||
mkDerivation, lib,
|
||||
docbook_xml_dtd_45, extra-cmake-modules, kdoctools,
|
||||
kauth, karchive, kcompletion, kconfig, kconfigwidgets, kcoreaddons, kcrash,
|
||||
kdbusaddons, kded, kdesignerplugin, kemoticons, kglobalaccel, kguiaddons,
|
||||
|
@ -11,7 +11,9 @@
|
|||
mkDerivation {
|
||||
name = "kdelibs4support";
|
||||
meta = { maintainers = [ lib.maintainers.ttuegel ]; };
|
||||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
||||
patches = [
|
||||
./nix-kde-include-dir.patch
|
||||
];
|
||||
setupHook = ./setup-hook.sh;
|
||||
nativeBuildInputs = [ extra-cmake-modules qttools ];
|
||||
propagatedNativeBuildInputs = [ kdoctools ];
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
nix-kde-include-dir.patch
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
mkDerivation, lib, copyPathsToStore,
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules,
|
||||
attr, ebook_tools, exiv2, ffmpeg_3, karchive, kcoreaddons, ki18n, poppler, qtbase, qtmultimedia, taglib
|
||||
}:
|
||||
|
@ -12,5 +12,7 @@ mkDerivation {
|
|||
attr ebook_tools exiv2 ffmpeg_3 karchive kcoreaddons ki18n poppler qtbase qtmultimedia
|
||||
taglib
|
||||
];
|
||||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
||||
patches = [
|
||||
./cmake-install-paths.patch
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
cmake-install-paths.patch
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
mkDerivation, lib, copyPathsToStore,
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules,
|
||||
breeze-icons, karchive, kcoreaddons, kconfigwidgets, ki18n, kitemviews,
|
||||
qtbase, qtsvg, qttools,
|
||||
|
@ -8,7 +8,9 @@
|
|||
mkDerivation {
|
||||
name = "kiconthemes";
|
||||
meta = { maintainers = [ lib.maintainers.ttuegel ]; };
|
||||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
||||
patches = [
|
||||
./default-theme-breeze.patch
|
||||
];
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
breeze-icons karchive kcoreaddons kconfigwidgets ki18n kitemviews
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
default-theme-breeze.patch
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
mkDerivation, lib, copyPathsToStore, writeScript,
|
||||
mkDerivation, lib, writeScript,
|
||||
extra-cmake-modules, kdoctools,
|
||||
kconfig, kcrash, ki18n, kio, kparts, kservice, kwindowsystem, plasma-framework
|
||||
}:
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
kinit-libpath.patch
|
||||
start_kdeinit-path.patch
|
||||
kdeinit-extra_libs.patch
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
mkDerivation, lib, copyPathsToStore,
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules, kdoctools, qttools,
|
||||
karchive, kbookmarks, kcompletion, kconfig, kconfigwidgets, kcoreaddons,
|
||||
kdbusaddons, ki18n, kiconthemes, kitemviews, kjobwidgets, knotifications,
|
||||
|
@ -21,5 +21,8 @@ mkDerivation {
|
|||
kxmlgui qtbase qttools solid
|
||||
];
|
||||
outputs = [ "out" "dev" ];
|
||||
patches = (copyPathsToStore (lib.readPathsFromFile ./. ./series));
|
||||
patches = [
|
||||
./samba-search-path.patch
|
||||
./kio-debug-module-loader.patch
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
samba-search-path.patch
|
||||
kio-debug-module-loader.patch
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
mkDerivation, lib, copyPathsToStore,
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules, kdoctools,
|
||||
karchive, kconfig, kcoreaddons, ki18n, qtbase,
|
||||
}:
|
||||
|
@ -9,5 +9,8 @@ mkDerivation {
|
|||
meta = { maintainers = [ lib.maintainers.ttuegel ]; };
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [ karchive kconfig kcoreaddons ki18n qtbase ];
|
||||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
||||
patches = [
|
||||
./allow-external-paths.patch
|
||||
./qdiriterator-follow-symlinks.patch
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
allow-external-paths.patch
|
||||
qdiriterator-follow-symlinks.patch
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
mkDerivation, lib, copyPathsToStore,
|
||||
mkDerivation, lib,
|
||||
bison, extra-cmake-modules, flex,
|
||||
kconfig, kcoreaddons, kcrash, kdbusaddons, kdoctools, ki18n, kwindowsystem,
|
||||
qtbase, shared-mime-info,
|
||||
|
@ -15,5 +15,8 @@ mkDerivation {
|
|||
];
|
||||
propagatedBuildInputs = [ kconfig kcoreaddons ];
|
||||
propagatedUserEnvPkgs = [ shared-mime-info ]; # for kbuildsycoca5
|
||||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
||||
patches = [
|
||||
./qdiriterator-follow-symlinks.patch
|
||||
./no-canonicalize-path.patch
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
qdiriterator-follow-symlinks.patch
|
||||
no-canonicalize-path.patch
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
mkDerivation, lib, copyPathsToStore,
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules,
|
||||
libpthreadstubs, libXdmcp,
|
||||
qtbase, qttools, qtx11extras
|
||||
|
@ -14,7 +14,9 @@ mkDerivation {
|
|||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ libpthreadstubs libXdmcp qttools qtx11extras ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
||||
patches = [
|
||||
./platform-plugins-path.patch
|
||||
];
|
||||
preConfigure = ''
|
||||
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_QT_PLUGIN_PATH=\"''${!outputBin}/$qtPluginPrefix\""
|
||||
'';
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
platform-plugins-path.patch
|
Loading…
Reference in New Issue