Merge pull request #115306 from SuperSandro2000/fix-collection22

This commit is contained in:
Sandro 2021-03-07 15:58:56 +01:00 committed by GitHub
commit 1aae00a12f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 88 additions and 110 deletions

View File

@ -1,18 +1,12 @@
{ { mkDerivation, lib, config
mkDerivation, lib, config, , extra-cmake-modules, kdoctools
, breeze-icons, karchive, kconfig, kcrash, kdbusaddons, ki18n
extra-cmake-modules, kdoctools, , kiconthemes, kitemmodels, khtml, kio, kparts, kpty, kservice, kwidgetsaddons
, libarchive, libzip
breeze-icons, karchive, kconfig, kcrash, kdbusaddons, ki18n, # Archive tools
kiconthemes, kitemmodels, khtml, kio, kparts, kpty, kservice, kwidgetsaddons, , p7zip, lrzip
# Unfree tools
libarchive, libzip, , unfreeEnableUnrar ? false, unrar
# Archive tools
p7zip, lrzip,
# Unfree tools
unfreeEnableUnrar ? false, unrar,
}: }:
let let
@ -21,20 +15,23 @@ in
mkDerivation { mkDerivation {
pname = "ark"; pname = "ark";
meta = {
description = "Graphical file compression/decompression utility";
license = with lib.licenses;
[ gpl2 lgpl3 ] ++ lib.optional unfreeEnableUnrar unfree;
maintainers = [ lib.maintainers.ttuegel ];
};
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
nativeBuildInputs = [ extra-cmake-modules kdoctools ]; nativeBuildInputs = [ extra-cmake-modules kdoctools ];
buildInputs = [ libarchive libzip ] ++ extraTools; buildInputs = [ libarchive libzip ] ++ extraTools;
propagatedBuildInputs = [ propagatedBuildInputs = [
breeze-icons karchive kconfig kcrash kdbusaddons khtml ki18n kiconthemes kio breeze-icons karchive kconfig kcrash kdbusaddons khtml ki18n kiconthemes kio
kitemmodels kparts kpty kservice kwidgetsaddons kitemmodels kparts kpty kservice kwidgetsaddons
]; ];
qtWrapperArgs = [ "--prefix" "PATH" ":" (lib.makeBinPath extraTools) ]; qtWrapperArgs = [ "--prefix" "PATH" ":" (lib.makeBinPath extraTools) ];
meta = with lib; {
description = "Graphical file compression/decompression utility";
license = with licenses; [ gpl2 lgpl3 ] ++ optional unfreeEnableUnrar unfree;
maintainers = [ maintainers.ttuegel ];
};
} }

View File

@ -6,8 +6,7 @@ let
name = "${pname}-${version}"; name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = url = "https://download.delta.chat/desktop/v${version}/DeltaChat-${version}.AppImage";
"https://download.delta.chat/desktop/v${version}/DeltaChat-${version}.AppImage";
sha256 = "sha256-iw2tU8qqXWbtEdLGlW8HNBHx8F2CgnCGCBUWpM407us="; sha256 = "sha256-iw2tU8qqXWbtEdLGlW8HNBHx8F2CgnCGCBUWpM407us=";
}; };

View File

@ -1,17 +1,19 @@
{ { mkDerivation, lib
mkDerivation, lib, , extra-cmake-modules
extra-cmake-modules, , qtbase, qtx11extras, wayland
qtbase, qtx11extras, wayland,
}: }:
mkDerivation { mkDerivation {
name = "kguiaddons"; name = "kguiaddons";
meta = {
maintainers = [ lib.maintainers.ttuegel ];
broken = builtins.compareVersions qtbase.version "5.7.0" < 0;
};
nativeBuildInputs = [ extra-cmake-modules ]; nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [ qtx11extras wayland ]; buildInputs = [ qtx11extras wayland ];
propagatedBuildInputs = [ qtbase ]; propagatedBuildInputs = [ qtbase ];
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
meta = with lib; {
maintainers = [ maintainers.ttuegel ];
broken = versionOlder qtbase.version "5.14.0";
};
} }

View File

@ -1,9 +1,7 @@
{ lib, buildPythonPackage, python, fetchFromGitHub, fetchpatch, isPy3k { lib, buildPythonPackage, python, fetchFromGitHub, isPy3k
, notmuch, urwid, urwidtrees, twisted, python_magic, configobj, mock, file, gpgme , notmuch, urwid, urwidtrees, twisted, python_magic, configobj, mock, file, gpgme
, service-identity , service-identity, gnupg, sphinx, gawk, procps, future , withManpage ? false
, gnupg ? null, sphinx, awk ? null, procps ? null, future ? null }:
, withManpage ? false }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "alot"; pname = "alot";
@ -41,7 +39,7 @@ buildPythonPackage rec {
doCheck = false; doCheck = false;
postBuild = lib.optionalString withManpage "make -C docs man"; postBuild = lib.optionalString withManpage "make -C docs man";
checkInputs = [ awk future mock gnupg procps ]; checkInputs = [ gawk future mock gnupg procps ];
postInstall = let postInstall = let
completionPython = python.withPackages (ps: [ ps.configobj ]); completionPython = python.withPackages (ps: [ ps.configobj ]);

View File

@ -6,6 +6,7 @@
, isPy3k , isPy3k
, sqlalchemy , sqlalchemy
, pytestCheckHook , pytestCheckHook
, stdenv
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -28,6 +29,8 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
disabledTestPaths = lib.optionals stdenv.isDarwin [ "src/crate/client/test_http.py" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/crate/crate-python"; homepage = "https://github.com/crate/crate-python";
description = "A Python client library for CrateDB"; description = "A Python client library for CrateDB";

View File

@ -3,7 +3,6 @@
, fetchPypi , fetchPypi
, grpc , grpc
, protobuf , protobuf
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {

View File

@ -66,5 +66,7 @@ buildPythonPackage rec {
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ evax ]; maintainers = with maintainers; [ evax ];
platforms = platforms.unix; platforms = platforms.unix;
# ModuleNotFoundError: No module named 'sklearn.ensemble.iforest'
broken = true;
}; };
} }

View File

@ -108,7 +108,7 @@ in rustPlatform.buildRustPackage {
}; };
}; };
meta = { meta = with lib; {
homepage = "https://github.com/tree-sitter/tree-sitter"; homepage = "https://github.com/tree-sitter/tree-sitter";
description = "A parser generator tool and an incremental parsing library"; description = "A parser generator tool and an incremental parsing library";
longDescription = '' longDescription = ''
@ -122,10 +122,9 @@ in rustPlatform.buildRustPackage {
* Robust enough to provide useful results even in the presence of syntax errors * Robust enough to provide useful results even in the presence of syntax errors
* Dependency-free so that the runtime library (which is written in pure C) can be embedded in any application * Dependency-free so that the runtime library (which is written in pure C) can be embedded in any application
''; '';
license = lib.licenses.mit; license = licenses.mit;
maintainers = with lib.maintainers; [ Profpatsch ]; maintainers = with maintainers; [ Profpatsch ];
# Aarch has test failures with how tree-sitter compiles the generated C files # Aarch has test failures with how tree-sitter compiles the generated C files
broken = stdenv.isAarch64; broken = stdenv.isAarch64;
}; };
} }

View File

@ -1,24 +1,23 @@
{ stdenv, lib, fetchFromGitHub, writeScript, glibcLocales, diffPlugins, substituteAll { stdenv, lib, fetchFromGitHub, writeScript, glibcLocales, diffPlugins, substituteAll
, pythonPackages, imagemagick, gobject-introspection, gst_all_1 , pythonPackages, imagemagick, gobject-introspection, gst_all_1
, runtimeShell , runtimeShell, unstableGitUpdater
, unstableGitUpdater
# external plugins package set # external plugins package set
, beetsExternalPlugins , beetsExternalPlugins
, enableAbsubmit ? lib.elem stdenv.hostPlatform.system essentia-extractor.meta.platforms, essentia-extractor ? null , enableAbsubmit ? lib.elem stdenv.hostPlatform.system essentia-extractor.meta.platforms, essentia-extractor
, enableAcousticbrainz ? true , enableAcousticbrainz ? true
, enableAcoustid ? true , enableAcoustid ? true
, enableBadfiles ? true, flac ? null, mp3val ? null , enableBadfiles ? true, flac, mp3val
, enableBeatport ? true , enableBeatport ? true
, enableBpsync ? true , enableBpsync ? true
, enableConvert ? true, ffmpeg ? null , enableConvert ? true, ffmpeg
, enableDeezer ? true , enableDeezer ? true
, enableDiscogs ? true , enableDiscogs ? true
, enableEmbyupdate ? true , enableEmbyupdate ? true
, enableFetchart ? true , enableFetchart ? true
, enableGmusic ? true , enableGmusic ? true
, enableKeyfinder ? true, keyfinder-cli ? null , enableKeyfinder ? true, keyfinder-cli
, enableKodiupdate ? true , enableKodiupdate ? true
, enableLastfm ? true , enableLastfm ? true
, enableLoadext ? true , enableLoadext ? true
@ -33,32 +32,14 @@
# External plugins # External plugins
, enableAlternatives ? false , enableAlternatives ? false
, enableCheck ? false, liboggz ? null , enableCheck ? false, liboggz
, enableCopyArtifacts ? false , enableCopyArtifacts ? false
, enableExtraFiles ? false , enableExtraFiles ? false
, bashInteractive, bash-completion , bashInteractive, bash-completion
}: }:
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 enableBpsync -> enableBeatport;
assert enableCheck -> flac != null && mp3val != null && liboggz != 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 lib;
let let
optionalPlugins = { optionalPlugins = {
@ -99,20 +80,20 @@ let
"types" "unimported" "zero" "types" "unimported" "zero"
]; ];
enabledOptionalPlugins = attrNames (filterAttrs (_: id) optionalPlugins); enabledOptionalPlugins = lib.attrNames (lib.filterAttrs (_: lib.id) optionalPlugins);
allPlugins = pluginsWithoutDeps ++ attrNames optionalPlugins; allPlugins = pluginsWithoutDeps ++ lib.attrNames optionalPlugins;
allEnabledPlugins = pluginsWithoutDeps ++ enabledOptionalPlugins; allEnabledPlugins = pluginsWithoutDeps ++ enabledOptionalPlugins;
testShell = "${bashInteractive}/bin/bash --norc"; testShell = "${bashInteractive}/bin/bash --norc";
completion = "${bash-completion}/share/bash-completion/bash_completion"; completion = "${bash-completion}/share/bash-completion/bash_completion";
# This is a stripped down beets for testing of the external plugins. # This is a stripped down beets for testing of the external plugins.
externalTestArgs.beets = (beets.override { externalTestArgs.beets = (lib.beets.override {
enableAlternatives = false; enableAlternatives = false;
enableCopyArtifacts = false; enableCopyArtifacts = false;
enableExtraFiles = false; enableExtraFiles = false;
}).overrideAttrs (const { }).overrideAttrs (lib.const {
doInstallCheck = false; doInstallCheck = false;
}); });
@ -147,10 +128,10 @@ in pythonPackages.buildPythonApplication rec {
pythonPackages.confuse pythonPackages.confuse
pythonPackages.mediafile pythonPackages.mediafile
gobject-introspection gobject-introspection
] ++ optional enableAbsubmit essentia-extractor ] ++ lib.optional enableAbsubmit essentia-extractor
++ optional enableAcoustid pythonPackages.pyacoustid ++ lib.optional enableAcoustid pythonPackages.pyacoustid
++ optional enableBeatport pythonPackages.requests_oauthlib ++ lib.optional enableBeatport pythonPackages.requests_oauthlib
++ optional (enableFetchart ++ lib.optional (enableFetchart
|| enableDeezer || enableDeezer
|| enableEmbyupdate || enableEmbyupdate
|| enableKodiupdate || enableKodiupdate
@ -160,19 +141,19 @@ in pythonPackages.buildPythonApplication rec {
|| enableSubsonicupdate || enableSubsonicupdate
|| enableAcousticbrainz) || enableAcousticbrainz)
pythonPackages.requests pythonPackages.requests
++ optional enableCheck beetsExternalPlugins.check ++ lib.optional enableCheck beetsExternalPlugins.check
++ optional enableConvert ffmpeg ++ lib.optional enableConvert ffmpeg
++ optional enableDiscogs pythonPackages.discogs_client ++ lib.optional enableDiscogs pythonPackages.discogs_client
++ optional enableGmusic pythonPackages.gmusicapi ++ lib.optional enableGmusic pythonPackages.gmusicapi
++ optional enableKeyfinder keyfinder-cli ++ lib.optional enableKeyfinder keyfinder-cli
++ optional enableLastfm pythonPackages.pylast ++ lib.optional enableLastfm pythonPackages.pylast
++ optional enableMpd pythonPackages.mpd2 ++ lib.optional enableMpd pythonPackages.mpd2
++ optional enableSonosUpdate pythonPackages.soco ++ lib.optional enableSonosUpdate pythonPackages.soco
++ optional enableThumbnails pythonPackages.pyxdg ++ lib.optional enableThumbnails pythonPackages.pyxdg
++ optional enableWeb pythonPackages.flask ++ lib.optional enableWeb pythonPackages.flask
++ optional enableAlternatives beetsExternalPlugins.alternatives ++ lib.optional enableAlternatives beetsExternalPlugins.alternatives
++ optional enableCopyArtifacts beetsExternalPlugins.copyartifacts ++ lib.optional enableCopyArtifacts beetsExternalPlugins.copyartifacts
++ optional enableExtraFiles beetsExternalPlugins.extrafiles ++ lib.optional enableExtraFiles beetsExternalPlugins.extrafiles
; ;
buildInputs = [ buildInputs = [
@ -209,12 +190,12 @@ in pythonPackages.buildPythonApplication rec {
# bs1770gain, and set the absolute path there, to avoid impurities. # bs1770gain, and set the absolute path there, to avoid impurities.
++ lib.optional enableReplaygain (substituteAll { ++ lib.optional enableReplaygain (substituteAll {
src = ./replaygain-default-ffmpeg.patch; src = ./replaygain-default-ffmpeg.patch;
ffmpeg = getBin ffmpeg; ffmpeg = lib.getBin ffmpeg;
}) })
# Put absolute Nix paths in place # Put absolute Nix paths in place
++ lib.optional enableConvert (substituteAll { ++ lib.optional enableConvert (substituteAll {
src = ./convert-plugin-ffmpeg-path.patch; src = ./convert-plugin-ffmpeg-path.patch;
ffmpeg = getBin ffmpeg; ffmpeg = lib.getBin ffmpeg;
}) })
++ lib.optional enableBadfiles (substituteAll { ++ lib.optional enableBadfiles (substituteAll {
src = ./badfiles-plugin-nix-paths.patch; src = ./badfiles-plugin-nix-paths.patch;
@ -269,7 +250,7 @@ in pythonPackages.buildPythonApplication rec {
EDITOR="${writeScript "beetconfig.sh" '' EDITOR="${writeScript "beetconfig.sh" ''
#!${runtimeShell} #!${runtimeShell}
cat > "$1" <<CFG cat > "$1" <<CFG
plugins: ${concatStringsSep " " allEnabledPlugins} plugins: ${lib.concatStringsSep " " allEnabledPlugins}
CFG CFG
''}" HOME="$tmphome" "$out/bin/beet" config -e ''}" HOME="$tmphome" "$out/bin/beet" config -e
EDITOR=true HOME="$tmphome" "$out/bin/beet" config -e EDITOR=true HOME="$tmphome" "$out/bin/beet" config -e
@ -285,7 +266,7 @@ in pythonPackages.buildPythonApplication rec {
updateScript = unstableGitUpdater { url = "https://github.com/beetbox/beets"; }; updateScript = unstableGitUpdater { url = "https://github.com/beetbox/beets"; };
}; };
meta = { meta = with lib; {
description = "Music tagger and library organizer"; description = "Music tagger and library organizer";
homepage = "http://beets.io"; homepage = "http://beets.io";
license = licenses.mit; license = licenses.mit;

View File

@ -1,13 +1,11 @@
{ lib, stdenv { lib
, stdenv
, pkgs , pkgs
, rustPackages
, fetchFromGitHub , fetchFromGitHub
, rustPlatform , rustPlatform
# Updater script
, runtimeShell
, writers , writers
# Tests
, nixosTests , nixosTests
# Apple dependencies
, CoreServices , CoreServices
, Security , Security
}: }:
@ -23,13 +21,6 @@ in (rustPlatform.buildRustPackage rec {
pname = "lorri"; pname = "lorri";
inherit version; inherit version;
meta = with lib; {
description = "Your project's nix-env";
homepage = "https://github.com/nix-community/lorri";
license = licenses.asl20;
maintainers = with maintainers; [ grahamc Profpatsch ];
};
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nix-community"; owner = "nix-community";
repo = pname; repo = pname;
@ -43,11 +34,10 @@ in (rustPlatform.buildRustPackage rec {
doCheck = false; doCheck = false;
BUILD_REV_COUNT = src.revCount or 1; BUILD_REV_COUNT = src.revCount or 1;
RUN_TIME_CLOSURE = pkgs.callPackage ./runtime.nix {}; RUN_TIME_CLOSURE = pkgs.callPackage ./runtime.nix { };
nativeBuildInputs = with pkgs; [ rustPackages.rustfmt ]; nativeBuildInputs = [ rustPackages.rustfmt ];
buildInputs = buildInputs = lib.optionals stdenv.isDarwin [ CoreServices Security ];
lib.optionals stdenv.isDarwin [ CoreServices Security ];
# copy the docs to the $man and $doc outputs # copy the docs to the $man and $doc outputs
postInstall = '' postInstall = ''
@ -70,4 +60,11 @@ in (rustPlatform.buildRustPackage rec {
nixos = nixosTests.lorri; nixos = nixosTests.lorri;
}; };
}; };
meta = with lib; {
description = "Your project's nix-env";
homepage = "https://github.com/target/lorri";
license = licenses.asl20;
maintainers = with maintainers; [ grahamc Profpatsch ];
};
}) })

View File

@ -17,10 +17,11 @@ stdenv.mkDerivation rec {
description = "A set of cross-platform tools to compute hashes"; description = "A set of cross-platform tools to compute hashes";
homepage = "https://github.com/jessek/hashdeep"; homepage = "https://github.com/jessek/hashdeep";
license = licenses.gpl2; license = licenses.gpl2;
maintainers = [ maintainers.karantan ];
platforms = platforms.all;
# Build fails on Darwin: # Build fails on Darwin:
# > ./xml.h:103:82: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] # > ./xml.h:103:82: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
# > void xmlout(const std::string &tag,const int64_t value){ xmlprintf(tag,"","%"PRId64,value); } # > void xmlout(const std::string &tag,const int64_t value){ xmlprintf(tag,"","%"PRId64,value); }
platforms = with platforms; linux ++ freebsd ++ openbsd; broken = stdenv.isDarwin;
maintainers = [ maintainers.karantan ];
}; };
} }