Merge pull request #115306 from SuperSandro2000/fix-collection22

authored by Sandro and committed by GitHub 1aae00a1 18750336

+88 -110
+18 -21
pkgs/applications/kde/ark/default.nix
··· 1 - { 2 - mkDerivation, lib, config, 3 - 4 - extra-cmake-modules, kdoctools, 5 - 6 - breeze-icons, karchive, kconfig, kcrash, kdbusaddons, ki18n, 7 - kiconthemes, kitemmodels, khtml, kio, kparts, kpty, kservice, kwidgetsaddons, 8 - 9 - libarchive, libzip, 10 - 11 - # Archive tools 12 - p7zip, lrzip, 13 - 14 - # Unfree tools 15 - unfreeEnableUnrar ? false, unrar, 1 + { mkDerivation, lib, config 2 + , extra-cmake-modules, kdoctools 3 + , breeze-icons, karchive, kconfig, kcrash, kdbusaddons, ki18n 4 + , kiconthemes, kitemmodels, khtml, kio, kparts, kpty, kservice, kwidgetsaddons 5 + , libarchive, libzip 6 + # Archive tools 7 + , p7zip, lrzip 8 + # Unfree tools 9 + , unfreeEnableUnrar ? false, unrar 16 10 }: 17 11 18 12 let ··· 21 15 22 16 mkDerivation { 23 17 pname = "ark"; 24 - meta = { 25 - description = "Graphical file compression/decompression utility"; 26 - license = with lib.licenses; 27 - [ gpl2 lgpl3 ] ++ lib.optional unfreeEnableUnrar unfree; 28 - maintainers = [ lib.maintainers.ttuegel ]; 29 - }; 30 18 31 19 outputs = [ "out" "dev" ]; 20 + 32 21 nativeBuildInputs = [ extra-cmake-modules kdoctools ]; 22 + 33 23 buildInputs = [ libarchive libzip ] ++ extraTools; 24 + 34 25 propagatedBuildInputs = [ 35 26 breeze-icons karchive kconfig kcrash kdbusaddons khtml ki18n kiconthemes kio 36 27 kitemmodels kparts kpty kservice kwidgetsaddons 37 28 ]; 38 29 39 30 qtWrapperArgs = [ "--prefix" "PATH" ":" (lib.makeBinPath extraTools) ]; 31 + 32 + meta = with lib; { 33 + description = "Graphical file compression/decompression utility"; 34 + license = with licenses; [ gpl2 lgpl3 ] ++ optional unfreeEnableUnrar unfree; 35 + maintainers = [ maintainers.ttuegel ]; 36 + }; 40 37 }
+1 -2
pkgs/applications/networking/instant-messengers/deltachat-electron/default.nix
··· 6 6 name = "${pname}-${version}"; 7 7 8 8 src = fetchurl { 9 - url = 10 - "https://download.delta.chat/desktop/v${version}/DeltaChat-${version}.AppImage"; 9 + url = "https://download.delta.chat/desktop/v${version}/DeltaChat-${version}.AppImage"; 11 10 sha256 = "sha256-iw2tU8qqXWbtEdLGlW8HNBHx8F2CgnCGCBUWpM407us="; 12 11 }; 13 12
+10 -8
pkgs/development/libraries/kde-frameworks/kguiaddons.nix
··· 1 - { 2 - mkDerivation, lib, 3 - extra-cmake-modules, 4 - qtbase, qtx11extras, wayland, 1 + { mkDerivation, lib 2 + , extra-cmake-modules 3 + , qtbase, qtx11extras, wayland 5 4 }: 6 5 7 6 mkDerivation { 8 7 name = "kguiaddons"; 9 - meta = { 10 - maintainers = [ lib.maintainers.ttuegel ]; 11 - broken = builtins.compareVersions qtbase.version "5.7.0" < 0; 12 - }; 8 + 13 9 nativeBuildInputs = [ extra-cmake-modules ]; 14 10 buildInputs = [ qtx11extras wayland ]; 15 11 propagatedBuildInputs = [ qtbase ]; 12 + 16 13 outputs = [ "out" "dev" ]; 14 + 15 + meta = with lib; { 16 + maintainers = [ maintainers.ttuegel ]; 17 + broken = versionOlder qtbase.version "5.14.0"; 18 + }; 17 19 }
+4 -6
pkgs/development/python-modules/alot/default.nix
··· 1 - { lib, buildPythonPackage, python, fetchFromGitHub, fetchpatch, isPy3k 1 + { lib, buildPythonPackage, python, fetchFromGitHub, isPy3k 2 2 , notmuch, urwid, urwidtrees, twisted, python_magic, configobj, mock, file, gpgme 3 - , service-identity 4 - , gnupg ? null, sphinx, awk ? null, procps ? null, future ? null 5 - , withManpage ? false }: 6 - 3 + , service-identity, gnupg, sphinx, gawk, procps, future , withManpage ? false 4 + }: 7 5 8 6 buildPythonPackage rec { 9 7 pname = "alot"; ··· 41 39 doCheck = false; 42 40 postBuild = lib.optionalString withManpage "make -C docs man"; 43 41 44 - checkInputs = [ awk future mock gnupg procps ]; 42 + checkInputs = [ gawk future mock gnupg procps ]; 45 43 46 44 postInstall = let 47 45 completionPython = python.withPackages (ps: [ ps.configobj ]);
+3
pkgs/development/python-modules/crate/default.nix
··· 6 6 , isPy3k 7 7 , sqlalchemy 8 8 , pytestCheckHook 9 + , stdenv 9 10 }: 10 11 11 12 buildPythonPackage rec { ··· 27 28 checkInputs = [ 28 29 pytestCheckHook 29 30 ]; 31 + 32 + disabledTestPaths = lib.optionals stdenv.isDarwin [ "src/crate/client/test_http.py" ]; 30 33 31 34 meta = with lib; { 32 35 homepage = "https://github.com/crate/crate-python";
-1
pkgs/development/python-modules/googleapis-common-protos/default.nix
··· 3 3 , fetchPypi 4 4 , grpc 5 5 , protobuf 6 - , pytestCheckHook 7 6 }: 8 7 9 8 buildPythonPackage rec {
+2
pkgs/development/python-modules/shap/default.nix
··· 66 66 license = licenses.mit; 67 67 maintainers = with maintainers; [ evax ]; 68 68 platforms = platforms.unix; 69 + # ModuleNotFoundError: No module named 'sklearn.ensemble.iforest' 70 + broken = true; 69 71 }; 70 72 }
+3 -4
pkgs/development/tools/parsing/tree-sitter/default.nix
··· 108 108 }; 109 109 }; 110 110 111 - meta = { 111 + meta = with lib; { 112 112 homepage = "https://github.com/tree-sitter/tree-sitter"; 113 113 description = "A parser generator tool and an incremental parsing library"; 114 114 longDescription = '' ··· 122 122 * Robust enough to provide useful results even in the presence of syntax errors 123 123 * Dependency-free so that the runtime library (which is written in pure C) can be embedded in any application 124 124 ''; 125 - license = lib.licenses.mit; 126 - maintainers = with lib.maintainers; [ Profpatsch ]; 125 + license = licenses.mit; 126 + maintainers = with maintainers; [ Profpatsch ]; 127 127 # Aarch has test failures with how tree-sitter compiles the generated C files 128 128 broken = stdenv.isAarch64; 129 129 }; 130 - 131 130 }
+31 -50
pkgs/tools/audio/beets/default.nix
··· 1 1 { stdenv, lib, fetchFromGitHub, writeScript, glibcLocales, diffPlugins, substituteAll 2 2 , pythonPackages, imagemagick, gobject-introspection, gst_all_1 3 - , runtimeShell 4 - , unstableGitUpdater 3 + , runtimeShell, unstableGitUpdater 5 4 6 5 # external plugins package set 7 6 , beetsExternalPlugins 8 7 9 - , enableAbsubmit ? lib.elem stdenv.hostPlatform.system essentia-extractor.meta.platforms, essentia-extractor ? null 8 + , enableAbsubmit ? lib.elem stdenv.hostPlatform.system essentia-extractor.meta.platforms, essentia-extractor 10 9 , enableAcousticbrainz ? true 11 10 , enableAcoustid ? true 12 - , enableBadfiles ? true, flac ? null, mp3val ? null 11 + , enableBadfiles ? true, flac, mp3val 13 12 , enableBeatport ? true 14 13 , enableBpsync ? true 15 - , enableConvert ? true, ffmpeg ? null 14 + , enableConvert ? true, ffmpeg 16 15 , enableDeezer ? true 17 16 , enableDiscogs ? true 18 17 , enableEmbyupdate ? true 19 18 , enableFetchart ? true 20 19 , enableGmusic ? true 21 - , enableKeyfinder ? true, keyfinder-cli ? null 20 + , enableKeyfinder ? true, keyfinder-cli 22 21 , enableKodiupdate ? true 23 22 , enableLastfm ? true 24 23 , enableLoadext ? true ··· 33 32 34 33 # External plugins 35 34 , enableAlternatives ? false 36 - , enableCheck ? false, liboggz ? null 35 + , enableCheck ? false, liboggz 37 36 , enableCopyArtifacts ? false 38 37 , enableExtraFiles ? false 39 38 40 39 , bashInteractive, bash-completion 41 40 }: 42 41 43 - assert enableAbsubmit -> essentia-extractor != null; 44 - assert enableAcoustid -> pythonPackages.pyacoustid != null; 45 - assert enableBadfiles -> flac != null && mp3val != null; 46 - assert enableBeatport -> pythonPackages.requests_oauthlib != null; 47 42 assert enableBpsync -> enableBeatport; 48 - assert enableCheck -> flac != null && mp3val != null && liboggz != null; 49 - assert enableConvert -> ffmpeg != null; 50 - assert enableDiscogs -> pythonPackages.discogs_client != null; 51 - assert enableFetchart -> pythonPackages.responses != null; 52 - assert enableGmusic -> pythonPackages.gmusicapi != null; 53 - assert enableKeyfinder -> keyfinder-cli != null; 54 - assert enableLastfm -> pythonPackages.pylast != null; 55 - assert enableMpd -> pythonPackages.mpd2 != null; 56 - assert enableReplaygain -> ffmpeg != null; 57 - assert enableSonosUpdate -> pythonPackages.soco != null; 58 - assert enableThumbnails -> pythonPackages.pyxdg != null; 59 - assert enableWeb -> pythonPackages.flask != null; 60 - 61 - with lib; 62 43 63 44 let 64 45 optionalPlugins = { ··· 99 80 "types" "unimported" "zero" 100 81 ]; 101 82 102 - enabledOptionalPlugins = attrNames (filterAttrs (_: id) optionalPlugins); 83 + enabledOptionalPlugins = lib.attrNames (lib.filterAttrs (_: lib.id) optionalPlugins); 103 84 104 - allPlugins = pluginsWithoutDeps ++ attrNames optionalPlugins; 85 + allPlugins = pluginsWithoutDeps ++ lib.attrNames optionalPlugins; 105 86 allEnabledPlugins = pluginsWithoutDeps ++ enabledOptionalPlugins; 106 87 107 88 testShell = "${bashInteractive}/bin/bash --norc"; 108 89 completion = "${bash-completion}/share/bash-completion/bash_completion"; 109 90 110 91 # This is a stripped down beets for testing of the external plugins. 111 - externalTestArgs.beets = (beets.override { 92 + externalTestArgs.beets = (lib.beets.override { 112 93 enableAlternatives = false; 113 94 enableCopyArtifacts = false; 114 95 enableExtraFiles = false; 115 - }).overrideAttrs (const { 96 + }).overrideAttrs (lib.const { 116 97 doInstallCheck = false; 117 98 }); 118 99 ··· 147 128 pythonPackages.confuse 148 129 pythonPackages.mediafile 149 130 gobject-introspection 150 - ] ++ optional enableAbsubmit essentia-extractor 151 - ++ optional enableAcoustid pythonPackages.pyacoustid 152 - ++ optional enableBeatport pythonPackages.requests_oauthlib 153 - ++ optional (enableFetchart 131 + ] ++ lib.optional enableAbsubmit essentia-extractor 132 + ++ lib.optional enableAcoustid pythonPackages.pyacoustid 133 + ++ lib.optional enableBeatport pythonPackages.requests_oauthlib 134 + ++ lib.optional (enableFetchart 154 135 || enableDeezer 155 136 || enableEmbyupdate 156 137 || enableKodiupdate ··· 160 141 || enableSubsonicupdate 161 142 || enableAcousticbrainz) 162 143 pythonPackages.requests 163 - ++ optional enableCheck beetsExternalPlugins.check 164 - ++ optional enableConvert ffmpeg 165 - ++ optional enableDiscogs pythonPackages.discogs_client 166 - ++ optional enableGmusic pythonPackages.gmusicapi 167 - ++ optional enableKeyfinder keyfinder-cli 168 - ++ optional enableLastfm pythonPackages.pylast 169 - ++ optional enableMpd pythonPackages.mpd2 170 - ++ optional enableSonosUpdate pythonPackages.soco 171 - ++ optional enableThumbnails pythonPackages.pyxdg 172 - ++ optional enableWeb pythonPackages.flask 173 - ++ optional enableAlternatives beetsExternalPlugins.alternatives 174 - ++ optional enableCopyArtifacts beetsExternalPlugins.copyartifacts 175 - ++ optional enableExtraFiles beetsExternalPlugins.extrafiles 144 + ++ lib.optional enableCheck beetsExternalPlugins.check 145 + ++ lib.optional enableConvert ffmpeg 146 + ++ lib.optional enableDiscogs pythonPackages.discogs_client 147 + ++ lib.optional enableGmusic pythonPackages.gmusicapi 148 + ++ lib.optional enableKeyfinder keyfinder-cli 149 + ++ lib.optional enableLastfm pythonPackages.pylast 150 + ++ lib.optional enableMpd pythonPackages.mpd2 151 + ++ lib.optional enableSonosUpdate pythonPackages.soco 152 + ++ lib.optional enableThumbnails pythonPackages.pyxdg 153 + ++ lib.optional enableWeb pythonPackages.flask 154 + ++ lib.optional enableAlternatives beetsExternalPlugins.alternatives 155 + ++ lib.optional enableCopyArtifacts beetsExternalPlugins.copyartifacts 156 + ++ lib.optional enableExtraFiles beetsExternalPlugins.extrafiles 176 157 ; 177 158 178 159 buildInputs = [ ··· 209 190 # bs1770gain, and set the absolute path there, to avoid impurities. 210 191 ++ lib.optional enableReplaygain (substituteAll { 211 192 src = ./replaygain-default-ffmpeg.patch; 212 - ffmpeg = getBin ffmpeg; 193 + ffmpeg = lib.getBin ffmpeg; 213 194 }) 214 195 # Put absolute Nix paths in place 215 196 ++ lib.optional enableConvert (substituteAll { 216 197 src = ./convert-plugin-ffmpeg-path.patch; 217 - ffmpeg = getBin ffmpeg; 198 + ffmpeg = lib.getBin ffmpeg; 218 199 }) 219 200 ++ lib.optional enableBadfiles (substituteAll { 220 201 src = ./badfiles-plugin-nix-paths.patch; ··· 269 250 EDITOR="${writeScript "beetconfig.sh" '' 270 251 #!${runtimeShell} 271 252 cat > "$1" <<CFG 272 - plugins: ${concatStringsSep " " allEnabledPlugins} 253 + plugins: ${lib.concatStringsSep " " allEnabledPlugins} 273 254 CFG 274 255 ''}" HOME="$tmphome" "$out/bin/beet" config -e 275 256 EDITOR=true HOME="$tmphome" "$out/bin/beet" config -e ··· 285 266 updateScript = unstableGitUpdater { url = "https://github.com/beetbox/beets"; }; 286 267 }; 287 268 288 - meta = { 269 + meta = with lib; { 289 270 description = "Music tagger and library organizer"; 290 271 homepage = "http://beets.io"; 291 272 license = licenses.mit;
+13 -16
pkgs/tools/misc/lorri/default.nix
··· 1 - { lib, stdenv 1 + { lib 2 + , stdenv 2 3 , pkgs 4 + , rustPackages 3 5 , fetchFromGitHub 4 6 , rustPlatform 5 - # Updater script 6 - , runtimeShell 7 7 , writers 8 - # Tests 9 8 , nixosTests 10 - # Apple dependencies 11 9 , CoreServices 12 10 , Security 13 11 }: ··· 22 20 in (rustPlatform.buildRustPackage rec { 23 21 pname = "lorri"; 24 22 inherit version; 25 - 26 - meta = with lib; { 27 - description = "Your project's nix-env"; 28 - homepage = "https://github.com/nix-community/lorri"; 29 - license = licenses.asl20; 30 - maintainers = with maintainers; [ grahamc Profpatsch ]; 31 - }; 32 23 33 24 src = fetchFromGitHub { 34 25 owner = "nix-community"; ··· 43 34 doCheck = false; 44 35 45 36 BUILD_REV_COUNT = src.revCount or 1; 46 - RUN_TIME_CLOSURE = pkgs.callPackage ./runtime.nix {}; 37 + RUN_TIME_CLOSURE = pkgs.callPackage ./runtime.nix { }; 47 38 48 - nativeBuildInputs = with pkgs; [ rustPackages.rustfmt ]; 49 - buildInputs = 50 - lib.optionals stdenv.isDarwin [ CoreServices Security ]; 39 + nativeBuildInputs = [ rustPackages.rustfmt ]; 40 + buildInputs = lib.optionals stdenv.isDarwin [ CoreServices Security ]; 51 41 52 42 # copy the docs to the $man and $doc outputs 53 43 postInstall = '' ··· 69 59 tests = { 70 60 nixos = nixosTests.lorri; 71 61 }; 62 + }; 63 + 64 + meta = with lib; { 65 + description = "Your project's nix-env"; 66 + homepage = "https://github.com/target/lorri"; 67 + license = licenses.asl20; 68 + maintainers = with maintainers; [ grahamc Profpatsch ]; 72 69 }; 73 70 })
+3 -2
pkgs/tools/security/hashdeep/default.nix
··· 17 17 description = "A set of cross-platform tools to compute hashes"; 18 18 homepage = "https://github.com/jessek/hashdeep"; 19 19 license = licenses.gpl2; 20 + maintainers = [ maintainers.karantan ]; 21 + platforms = platforms.all; 20 22 # Build fails on Darwin: 21 23 # > ./xml.h:103:82: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] 22 24 # > void xmlout(const std::string &tag,const int64_t value){ xmlprintf(tag,"","%"PRId64,value); } 23 - platforms = with platforms; linux ++ freebsd ++ openbsd; 24 - maintainers = [ maintainers.karantan ]; 25 + broken = stdenv.isDarwin; 25 26 }; 26 27 }