3
0
Fork 0
forked from mirrors/nixpkgs

Merge master into staging-next

This commit is contained in:
github-actions[bot] 2023-02-15 06:01:14 +00:00 committed by GitHub
commit 1fd20e8410
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
46 changed files with 574 additions and 342 deletions

View file

@ -0,0 +1,35 @@
{ lib
, rustPlatform
, fetchFromGitea
, pkg-config
, stdenv
, openssl
, libiconv
, Security }:
rustPlatform.buildRustPackage rec {
pname = "listenbrainz-mpd";
version = "2.0.2";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "elomatreb";
repo = "listenbrainz-mpd";
rev = "v${version}";
hash = "sha256-DO7YUqaJZyVWjiAZ9WIVNTTvOU0qdsI2ct7aT/6O5dQ=";
};
cargoHash = "sha256-MiAalxe0drRHrST3maVvi8GM2y3d0z4Zl7R7Zx8VjEM=";
nativeBuildInputs = [ pkg-config ];
buildInputs = if stdenv.isDarwin then [ libiconv Security ] else [ openssl ];
meta = with lib; {
homepage = "https://codeberg.org/elomatreb/listenbrainz-mpd";
changelog = "https://codeberg.org/elomatreb/listenbrainz-mpd/src/tag/v${version}/CHANGELOG.md";
description = "ListenBrainz submission client for MPD";
license = licenses.agpl3Only;
maintainers = with maintainers; [ DeeUnderscore ];
};
}

View file

@ -25,8 +25,7 @@
}: }:
let let
mutableExtensionsFilePath = toString mutableExtensionsFile; mutableExtensionsFilePath = toString mutableExtensionsFile;
mutableExtensions = if builtins.pathExists mutableExtensionsFile mutableExtensions = lib.optionals builtins.pathExists mutableExtensionsFile (import mutableExtensionsFilePath);
then import mutableExtensionsFilePath else [];
vscodeWithConfiguration = import ./vscodeWithConfiguration.nix { vscodeWithConfiguration = import ./vscodeWithConfiguration.nix {
inherit lib writeShellScriptBin extensionsFromVscodeMarketplace; inherit lib writeShellScriptBin extensionsFromVscodeMarketplace;
vscodeDefault = vscode; vscodeDefault = vscode;

View file

@ -49,7 +49,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
gtk3 udev desktop-file-utils shared-mime-info gtk3 udev desktop-file-utils shared-mime-info
wrapGAppsHook ffmpegthumbnailer jmtpfs lsof udisks2 wrapGAppsHook ffmpegthumbnailer jmtpfs lsof udisks2
] ++ (if ifuseSupport then [ ifuse ] else []); ] ++ (lib.optionals ifuseSupport [ ifuse ]);
# Introduced because ifuse doesn't build due to CVEs in libplist # Introduced because ifuse doesn't build due to CVEs in libplist
# Revert when libplist builds again… # Revert when libplist builds again…

View file

@ -1,7 +1,7 @@
{ symlinkJoin, kdevelop-unwrapped, plugins ? null }: { lib, symlinkJoin, kdevelop-unwrapped, plugins ? null }:
symlinkJoin { symlinkJoin {
name = "kdevelop-with-plugins"; name = "kdevelop-with-plugins";
paths = [ kdevelop-unwrapped ] ++ (if plugins != null then plugins else []); paths = [ kdevelop-unwrapped ] ++ (lib.optionals (plugins != null) plugins);
} }

View file

@ -22,6 +22,7 @@
, qtbase , qtbase
, qtwayland , qtwayland
, removeReferencesTo , removeReferencesTo
, speechd
, sqlite , sqlite
, wrapQtAppsHook , wrapQtAppsHook
, xdg-utils , xdg-utils
@ -121,6 +122,7 @@ stdenv.mkDerivation rec {
regex regex
sip sip
setuptools setuptools
speechd
zeroconf zeroconf
jeepney jeepney
pycryptodome pycryptodome

View file

@ -1,4 +1,4 @@
{ lib, buildGoModule, installShellFiles, fetchFromGitHub, ffmpeg, ttyd, makeWrapper }: { lib, buildGoModule, installShellFiles, fetchFromGitHub, ffmpeg, ttyd, chromium, makeWrapper }:
buildGoModule rec { buildGoModule rec {
pname = "vhs"; pname = "vhs";
@ -14,12 +14,11 @@ buildGoModule rec {
vendorHash = "sha256-9nkRr5Jh1nbI+XXbPj9KB0ZbLybv5JUVovpB311fO38="; vendorHash = "sha256-9nkRr5Jh1nbI+XXbPj9KB0ZbLybv5JUVovpB311fO38=";
nativeBuildInputs = [ installShellFiles makeWrapper ]; nativeBuildInputs = [ installShellFiles makeWrapper ];
buildInputs = [ ttyd ffmpeg ];
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ]; ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
postInstall = '' postInstall = ''
wrapProgram $out/bin/vhs --prefix PATH : ${lib.makeBinPath [ ffmpeg ttyd ]} wrapProgram $out/bin/vhs --prefix PATH : ${lib.makeBinPath [ chromium ffmpeg ttyd ]}
$out/bin/vhs man > vhs.1 $out/bin/vhs man > vhs.1
installManPage vhs.1 installManPage vhs.1
installShellCompletion --cmd vhs \ installShellCompletion --cmd vhs \

View file

@ -90,9 +90,7 @@ mkChromiumDerivation (base: rec {
license = if enableWideVine then lib.licenses.unfree else lib.licenses.bsd3; license = if enableWideVine then lib.licenses.unfree else lib.licenses.bsd3;
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
mainProgram = "chromium"; mainProgram = "chromium";
hydraPlatforms = if (channel == "stable" || channel == "ungoogled-chromium") hydraPlatforms = lib.optionals (channel == "stable" || channel == "ungoogled-chromium") ["aarch64-linux" "x86_64-linux"];
then ["aarch64-linux" "x86_64-linux"]
else [];
timeout = 172800; # 48 hours (increased from the Hydra default of 10h) timeout = 172800; # 48 hours (increased from the Hydra default of 10h)
}; };
}) })

View file

@ -98,7 +98,7 @@ let
usesNixExtensions = nixExtensions != null; usesNixExtensions = nixExtensions != null;
nameArray = builtins.map(a: a.name) (if usesNixExtensions then nixExtensions else []); nameArray = builtins.map(a: a.name) (lib.optionals usesNixExtensions nixExtensions);
requiresSigning = browser ? MOZ_REQUIRE_SIGNING requiresSigning = browser ? MOZ_REQUIRE_SIGNING
-> toString browser.MOZ_REQUIRE_SIGNING != ""; -> toString browser.MOZ_REQUIRE_SIGNING != "";
@ -114,7 +114,7 @@ let
throw "nixExtensions has an invalid entry. Missing extid attribute. Please use fetchfirefoxaddon" throw "nixExtensions has an invalid entry. Missing extid attribute. Please use fetchfirefoxaddon"
else else
a a
) (if usesNixExtensions then nixExtensions else []); ) (lib.optionals usesNixExtensions nixExtensions);
enterprisePolicies = enterprisePolicies =
{ {

View file

@ -173,11 +173,11 @@
"vendorHash": "sha256-foMmZbNPLww1MN4UZwuynBDgt2w40aMqVINRw//Q0d0=" "vendorHash": "sha256-foMmZbNPLww1MN4UZwuynBDgt2w40aMqVINRw//Q0d0="
}, },
"brightbox": { "brightbox": {
"hash": "sha256-ISK6cpE4DVrVzjC0N5BdyR3Z5LfF9qfg/ACTgDP+WqY=", "hash": "sha256-YmgzzDLNJg7zm8smboI0gE2kOgjb2RwPf5v1CbzgvGA=",
"homepage": "https://registry.terraform.io/providers/brightbox/brightbox", "homepage": "https://registry.terraform.io/providers/brightbox/brightbox",
"owner": "brightbox", "owner": "brightbox",
"repo": "terraform-provider-brightbox", "repo": "terraform-provider-brightbox",
"rev": "v3.2.0", "rev": "v3.2.1",
"spdx": "MPL-2.0", "spdx": "MPL-2.0",
"vendorHash": "sha256-IiP1LvAX8fknB56gJoI75kGGkRIIoSfpmPkoTxujVDU=" "vendorHash": "sha256-IiP1LvAX8fknB56gJoI75kGGkRIIoSfpmPkoTxujVDU="
}, },
@ -438,24 +438,24 @@
"vendorHash": "sha256-aVbJT31IIgW0GYzwVX7kT4j7E+dadSbnttThh2lzGyE=" "vendorHash": "sha256-aVbJT31IIgW0GYzwVX7kT4j7E+dadSbnttThh2lzGyE="
}, },
"google": { "google": {
"hash": "sha256-z5Fi+ac7dcDr/eTTJWWfsIm9tJJ+NgcY2L08h317G7g=", "hash": "sha256-WE1UjyqsrhlGWJHZ6VlNCBtdSsXM6ewK4WJrmqFN6NU=",
"homepage": "https://registry.terraform.io/providers/hashicorp/google", "homepage": "https://registry.terraform.io/providers/hashicorp/google",
"owner": "hashicorp", "owner": "hashicorp",
"proxyVendor": true, "proxyVendor": true,
"repo": "terraform-provider-google", "repo": "terraform-provider-google",
"rev": "v4.53.0", "rev": "v4.53.1",
"spdx": "MPL-2.0", "spdx": "MPL-2.0",
"vendorHash": "sha256-glxBI4e5BN28GMGeixUSiCaDTIlr+8e4QHnzaDagyno=" "vendorHash": "sha256-oModEw/gaQCDHLf+2EKf1O1HQSGWnqEReXowE6F7W0o="
}, },
"google-beta": { "google-beta": {
"hash": "sha256-0NCndgGz/xrYNvWjs49u//VXvndw0RFyAINnGUTKQ4s=", "hash": "sha256-eXIYVB3YzhJNjYNR1oB7bj5uGZgRhgMD5eWxLls6KoE=",
"homepage": "https://registry.terraform.io/providers/hashicorp/google-beta", "homepage": "https://registry.terraform.io/providers/hashicorp/google-beta",
"owner": "hashicorp", "owner": "hashicorp",
"proxyVendor": true, "proxyVendor": true,
"repo": "terraform-provider-google-beta", "repo": "terraform-provider-google-beta",
"rev": "v4.53.0", "rev": "v4.53.1",
"spdx": "MPL-2.0", "spdx": "MPL-2.0",
"vendorHash": "sha256-glxBI4e5BN28GMGeixUSiCaDTIlr+8e4QHnzaDagyno=" "vendorHash": "sha256-oModEw/gaQCDHLf+2EKf1O1HQSGWnqEReXowE6F7W0o="
}, },
"googleworkspace": { "googleworkspace": {
"hash": "sha256-dedYnsKHizxJZibuvJOMbJoux0W6zgKaK5fxIofKqCY=", "hash": "sha256-dedYnsKHizxJZibuvJOMbJoux0W6zgKaK5fxIofKqCY=",
@ -494,11 +494,11 @@
"vendorHash": "sha256-/dsiIxgW4BxSpRtnD77NqtkxEEAXH1Aj5hDCRSdiDYg=" "vendorHash": "sha256-/dsiIxgW4BxSpRtnD77NqtkxEEAXH1Aj5hDCRSdiDYg="
}, },
"helm": { "helm": {
"hash": "sha256-MSBCn4AriAWys2FIYJIGamcaLGx0gtO5IiB/WxcN2rg=", "hash": "sha256-X9keFjAmV86F/8ktxiv/VrnkHOazP9e/aOC9aRw1A48=",
"homepage": "https://registry.terraform.io/providers/hashicorp/helm", "homepage": "https://registry.terraform.io/providers/hashicorp/helm",
"owner": "hashicorp", "owner": "hashicorp",
"repo": "terraform-provider-helm", "repo": "terraform-provider-helm",
"rev": "v2.8.0", "rev": "v2.9.0",
"spdx": "MPL-2.0", "spdx": "MPL-2.0",
"vendorHash": null "vendorHash": null
}, },
@ -1045,13 +1045,13 @@
"vendorHash": "sha256-NO1r/EWLgH1Gogru+qPeZ4sW7FuDENxzNnpLSKstnE8=" "vendorHash": "sha256-NO1r/EWLgH1Gogru+qPeZ4sW7FuDENxzNnpLSKstnE8="
}, },
"spotinst": { "spotinst": {
"hash": "sha256-UivENbjPajJdH9PwHznMP+cLXBJ8C38wgHS2IqyoqRk=", "hash": "sha256-5irTp8teFShAd0FV2fIKf4dE9WokmxK3rREEozinQZM=",
"homepage": "https://registry.terraform.io/providers/spotinst/spotinst", "homepage": "https://registry.terraform.io/providers/spotinst/spotinst",
"owner": "spotinst", "owner": "spotinst",
"repo": "terraform-provider-spotinst", "repo": "terraform-provider-spotinst",
"rev": "v1.97.0", "rev": "v1.99.0",
"spdx": "MPL-2.0", "spdx": "MPL-2.0",
"vendorHash": "sha256-iQLZpSa1gJ4z2/r1Om9vFrcKP5ik7kcx+rNVZLhmSBc=" "vendorHash": "sha256-yuGUEy9us2BL2v06tL3XDcpCujQk8H2DUzQiJQQNsvo="
}, },
"stackpath": { "stackpath": {
"hash": "sha256-nTR9HgSmuNCt7wxE4qqIH2+HA2igzqVx0lLRx6FoKrE=", "hash": "sha256-nTR9HgSmuNCt7wxE4qqIH2+HA2igzqVx0lLRx6FoKrE=",

View file

@ -37,20 +37,18 @@ rec {
); );
nativeBuildInputs = lib.flatten (lib.mapAttrsToList ( nativeBuildInputs = lib.flatten (lib.mapAttrsToList (
feat: info: ( feat: info: (
if hasFeature feat then lib.optionals (hasFeature feat) (
(if builtins.hasAttr "native" info then info.native else []) ++ (lib.optionals (builtins.hasAttr "native" info) info.native) ++
(if builtins.hasAttr "pythonNative" info then info.pythonNative else []) (lib.optionals (builtins.hasAttr "pythonNative" info) info.pythonNative)
else )
[]
) )
) featuresInfo); ) featuresInfo);
buildInputs = lib.flatten (lib.mapAttrsToList ( buildInputs = lib.flatten (lib.mapAttrsToList (
feat: info: ( feat: info: (
if hasFeature feat then lib.optionals (hasFeature feat) (
(if builtins.hasAttr "runtime" info then info.runtime else []) ++ (lib.optionals (builtins.hasAttr "runtime" info) info.runtime) ++
(if builtins.hasAttr "pythonRuntime" info then info.pythonRuntime else []) (lib.optionals (builtins.hasAttr "pythonRuntime" info) info.pythonRuntime)
else )
[]
) )
) featuresInfo); ) featuresInfo);
cmakeFlags = lib.mapAttrsToList ( cmakeFlags = lib.mapAttrsToList (

View file

@ -41,12 +41,9 @@ let
++ (builtins.map unwrapped.python.pkgs.toPythonModule extraPackages) ++ (builtins.map unwrapped.python.pkgs.toPythonModule extraPackages)
++ lib.flatten (lib.mapAttrsToList ( ++ lib.flatten (lib.mapAttrsToList (
feat: info: ( feat: info: (
if unwrapped.hasFeature feat then lib.optionals ((unwrapped.hasFeature feat) && (builtins.hasAttr "pythonRuntime" info)) info.pythonRuntime
(if builtins.hasAttr "pythonRuntime" info then info.pythonRuntime else [])
else
[]
) )
) unwrapped.featuresInfo) ) unwrapped.featuresInfo)
; ;
pythonEnv = unwrapped.python.withPackages(ps: pythonPkgs); pythonEnv = unwrapped.python.withPackages(ps: pythonPkgs);

View file

@ -6,8 +6,8 @@
# * application: Whether this package is a python library or an # * application: Whether this package is a python library or an
# application which happens to be written in python. # application which happens to be written in python.
# * doCheck: Whether to run the test suites. # * doCheck: Whether to run the test suites.
pythonPackages: lib: pythonPackages:
{ src, info, meta ? {}, application ? false, doCheck ? true }: let { src, info, meta ? {}, application ? false, doCheck ? true}: let
build = if application build = if application
then pythonPackages.buildPythonApplication then pythonPackages.buildPythonApplication
else pythonPackages.buildPythonPackage; else pythonPackages.buildPythonPackage;
@ -18,7 +18,8 @@ in build {
nativeBuildInputs = map (p: pythonPackages.${p}) ( nativeBuildInputs = map (p: pythonPackages.${p}) (
(info.setup_requires or []) ++ (info.setup_requires or []) ++
(if doCheck then (info.tests_require or []) else [])); (lib.optionals doCheck (info.tests_require or []))
);
propagatedBuildInputs = map (p: pythonPackages.${p}) propagatedBuildInputs = map (p: pythonPackages.${p})
(info.install_requires or []); (info.install_requires or []);

View file

@ -30,9 +30,7 @@ let
meta.licence = let meta.licence = let
depLicenses = lib.splitString "\n" (builtins.readFile "${nuget-source}/share/licenses"); depLicenses = lib.splitString "\n" (builtins.readFile "${nuget-source}/share/licenses");
in (lib.flatten (lib.forEach depLicenses (spdx: in (lib.flatten (lib.forEach depLicenses (spdx:
if (spdx != "") lib.optionals (spdx != "") (lib.getLicenseFromSpdxId spdx)
then lib.getLicenseFromSpdxId spdx
else []
))); )));
}; };
in nuget-source in nuget-source

View file

@ -0,0 +1,74 @@
{ stdenv
, lib
, fetchFromGitHub
, qmake
, pkg-config
, qttools
, wrapQtAppsHook
, dtkwidget
, qt5integration
, qt5platform-plugins
, dde-qt-dbus-factory
, qtwebengine
, karchive
, poppler
, libchardet
, libspectre
, openjpeg
, djvulibre
, gtest
, qtbase
}:
stdenv.mkDerivation rec {
pname = "deepin-reader";
version = "5.10.28";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "sha256-0jHhsxEjBbu3ktvjX1eKnkZDwzRk9MrUSJSdYeOvWtI=";
};
patches = [ ./use-pkg-config.diff ];
postPatch = ''
substituteInPlace reader/{reader.pro,document/Model.cpp} htmltopdf/htmltopdf.pro 3rdparty/deepin-pdfium/src/src.pro \
--replace "/usr" "$out"
'';
nativeBuildInputs = [
qmake
pkg-config
qttools
wrapQtAppsHook
];
buildInputs = [
dtkwidget
qt5platform-plugins
dde-qt-dbus-factory
qtwebengine
karchive
poppler
libchardet
libspectre
djvulibre
openjpeg
gtest
];
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
qtWrapperArgs = [
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
];
meta = with lib; {
description = "A simple memo software with texts and voice recordings";
homepage = "https://github.com/linuxdeepin/deepin-reader";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.deepin.members;
};
}

View file

@ -0,0 +1,46 @@
diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium.pri b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium.pri
index 3e04f340..894b0ac7 100755
--- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium.pri
+++ b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium.pri
@@ -20,13 +20,8 @@ DEFINES += USE_SYSTEM_LIBJPEG \
USE_SYSTEM_LIBOPENJPEG2 \
USE_SYSTEM_FREETYPE
-INCLUDEPATH += /usr/include/openjpeg-2.3 \
- /usr/include/openjpeg-2.4 \
- /usr/include/freetype2 \
- /usr/include/freetype2/freetype \
- /usr/include/freetype2/freetype/config
-
-LIBS += -lopenjp2 -llcms2 -lfreetype
+CONFIG += link_pkgconfig
+PKGCONFIG += libopenjp2 lcms2 freetype2
#QMAKE_CXXFLAGS += "-Wc++11-narrowing" #is_clang
#QMAKE_CXXFLAGS += "-Wno-inconsistent-missing-override" #is_clang Suppress no override warning for overridden functions.
diff --git a/3rdparty/deepin-pdfium/src/src.pro b/3rdparty/deepin-pdfium/src/src.pro
index 196b91d3..bda71ff4 100755
--- a/3rdparty/deepin-pdfium/src/src.pro
+++ b/3rdparty/deepin-pdfium/src/src.pro
@@ -2,7 +2,9 @@ TARGET = $$PWD/../lib/deepin-pdfium
TEMPLATE = lib
-CONFIG += c++14
+CONFIG += c++14 link_pkgconfig
+
+PKGCONFIG += chardet
###安全漏洞检测
#QMAKE_CXX += -g -fsanitize=undefined,address -O2
@@ -28,10 +30,6 @@ include($$PWD/3rdparty/pdfium/pdfium.pri)
INCLUDEPATH += $$PWD/../include
-INCLUDEPATH += /usr/include/chardet
-
-LIBS += -lchardet
-
public_headers += \
$$PWD/../include/dpdfglobal.h \
$$PWD/../include/dpdfdoc.h \

View file

@ -38,6 +38,7 @@ let
deepin-image-viewer = callPackage ./apps/deepin-image-viewer { }; deepin-image-viewer = callPackage ./apps/deepin-image-viewer { };
deepin-picker = callPackage ./apps/deepin-picker { }; deepin-picker = callPackage ./apps/deepin-picker { };
deepin-terminal = callPackage ./apps/deepin-terminal { }; deepin-terminal = callPackage ./apps/deepin-terminal { };
deepin-reader = callPackage ./apps/deepin-reader { };
#### Go Packages #### Go Packages
go-lib = callPackage ./go-package/go-lib { inherit replaceAll; }; go-lib = callPackage ./go-package/go-lib { inherit replaceAll; };

View file

@ -4,8 +4,6 @@
, testers , testers
}: }:
with lib;
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "gtksourceview"; pname = "gtksourceview";
version = "2.10.5"; version = "2.10.5";
@ -17,7 +15,7 @@ stdenv.mkDerivation (finalAttrs: {
sha256 = "c585773743b1df8a04b1be7f7d90eecdf22681490d6810be54c81a7ae152191e"; sha256 = "c585773743b1df8a04b1be7f7d90eecdf22681490d6810be54c81a7ae152191e";
}; };
patches = optionals stdenv.isDarwin [ patches = lib.optionals stdenv.isDarwin [
(fetchpatch { (fetchpatch {
name = "change-igemacintegration-to-gtkosxapplication.patch"; name = "change-igemacintegration-to-gtkosxapplication.patch";
url = "https://gitlab.gnome.org/GNOME/gtksourceview/commit/e88357c5f210a8796104505c090fb6a04c213902.patch"; url = "https://gitlab.gnome.org/GNOME/gtksourceview/commit/e88357c5f210a8796104505c090fb6a04c213902.patch";
@ -35,11 +33,11 @@ stdenv.mkDerivation (finalAttrs: {
atk cairo glib gtk2 atk cairo glib gtk2
pango libxml2Python perl pango libxml2Python perl
gettext gettext
] ++ optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
gnome-common gtk-mac-integration-gtk2 gnome-common gtk-mac-integration-gtk2
]; ];
preConfigure = optionalString stdenv.isDarwin '' preConfigure = lib.optionalString stdenv.isDarwin ''
intltoolize --force intltoolize --force
''; '';

View file

@ -63,7 +63,7 @@
hooks = import ./hooks/default.nix; hooks = import ./hooks/default.nix;
keep = lib.extends hooks pythonPackagesFun; keep = lib.extends hooks pythonPackagesFun;
extra = _: {}; extra = _: {};
optionalExtensions = cond: as: if cond then as else []; optionalExtensions = cond: as: lib.optionals cond as;
pythonExtension = import ../../../top-level/python-packages.nix; pythonExtension = import ../../../top-level/python-packages.nix;
python2Extension = import ../../../top-level/python2-packages.nix; python2Extension = import ../../../top-level/python2-packages.nix;
extensions = lib.composeManyExtensions ([ extensions = lib.composeManyExtensions ([

View file

@ -39,7 +39,7 @@ let
})); }));
# See build-setupcfg/default.nix for documentation. # See build-setupcfg/default.nix for documentation.
buildSetupcfg = import ../../../build-support/build-setupcfg self; buildSetupcfg = import ../../../build-support/build-setupcfg lib self;
# Check whether a derivation provides a Python module. # Check whether a derivation provides a Python module.
hasPythonModule = drv: drv?pythonModule && drv.pythonModule == python; hasPythonModule = drv: drv?pythonModule && drv.pythonModule == python;

View file

@ -5,7 +5,7 @@
, sha512 , sha512
, type ? "jar" , type ? "jar"
, suffix ? "" , suffix ? ""
, sourceProvenance ? (if type == "jar" then [ lib.sourceTypes.binaryBytecode ] else []) , sourceProvenance ? (lib.optionals (type == "jar") [ lib.sourceTypes.binaryBytecode ])
}: }:
let let

View file

@ -20,7 +20,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libadwaita"; pname = "libadwaita";
version = "1.2.1"; version = "1.2.2";
outputs = [ "out" "dev" "devdoc" ]; outputs = [ "out" "dev" "devdoc" ];
outputBin = "devdoc"; # demo app outputBin = "devdoc"; # demo app
@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
owner = "GNOME"; owner = "GNOME";
repo = "libadwaita"; repo = "libadwaita";
rev = version; rev = version;
hash = "sha256-FJmH/DTTn01UlATgxC0d7vrpVLwAot6Y4cZralQz2nU="; hash = "sha256-ftq7PLbTmhAAAhAYfrwicWn8t88+dG45G8q/vQa2cKw=";
}; };
depsBuildBuild = [ depsBuildBuild = [

View file

@ -6,38 +6,37 @@
, python3 , python3
, python3Packages , python3Packages
, wafHook , wafHook
, boost175 , boost
, openssl , openssl
, sqlite , sqlite
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ndn-cxx"; pname = "ndn-cxx";
version = "0.7.1"; version = "0.8.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "named-data"; owner = "named-data";
repo = "ndn-cxx"; repo = "ndn-cxx";
rev = "${pname}-${version}"; rev = "${pname}-${version}";
sha256 = "sha256-oTSc/lh0fDdk7dQeDhYKX5+gFl2t2Xlu1KkNmw7DitE="; sha256 = "sha256-nnnxlkYVTSRB6ZcuIUDFol999+amGtqegHXK+06ITK8=";
}; };
nativeBuildInputs = [ doxygen pkg-config python3 python3Packages.sphinx wafHook ]; nativeBuildInputs = [ doxygen pkg-config python3 python3Packages.sphinx wafHook ];
buildInputs = [ boost175 openssl sqlite ]; buildInputs = [ boost openssl sqlite ];
wafConfigureFlags = [ wafConfigureFlags = [
"--with-openssl=${openssl.dev}" "--with-openssl=${openssl.dev}"
"--boost-includes=${boost175.dev}/include" "--boost-includes=${boost.dev}/include"
"--boost-libs=${boost175.out}/lib" "--boost-libs=${boost.out}/lib"
# "--with-tests" # disabled since upstream tests fail (Net/TestFaceUri/ParseDev Bug #3896) "--with-tests"
]; ];
doCheck = false; # some tests fail in upstream, some fail because of the sandbox environment
doCheck = false; # disabled since upstream tests fail (Net/TestFaceUri/ParseDev Bug #3896)
checkPhase = '' checkPhase = ''
runHook preCheck runHook preCheck
LD_PRELOAD=build/ndn-cxx.so build/unit-tests LD_PRELOAD=build/libndn-cxx.so build/unit-tests
runHook postCheck runHook postCheck
''; '';

View file

@ -186,7 +186,7 @@ rec {
system-images = lib.flatten (map (apiVersion: system-images = lib.flatten (map (apiVersion:
map (type: map (type:
map (abiVersion: map (abiVersion:
if lib.hasAttrByPath [apiVersion type abiVersion] system-images-packages then lib.optionals (lib.hasAttrByPath [apiVersion type abiVersion] system-images-packages) (
deployAndroidPackage { deployAndroidPackage {
inherit os; inherit os;
package = system-images-packages.${apiVersion}.${type}.${abiVersion}; package = system-images-packages.${apiVersion}.${type}.${abiVersion};
@ -197,7 +197,7 @@ rec {
sed -i '/^Addon.Vendor/d' source.properties sed -i '/^Addon.Vendor/d' source.properties
''; '';
} }
else [] )
) abiVersions ) abiVersions
) systemImageTypes ) systemImageTypes
) platformVersions); ) platformVersions);
@ -217,7 +217,7 @@ rec {
}; };
# All NDK bundles. # All NDK bundles.
ndk-bundles = if includeNDK then map makeNdkBundle ndkVersions else []; ndk-bundles = lib.optionals includeNDK (map makeNdkBundle ndkVersions);
# The "default" NDK bundle. # The "default" NDK bundle.
ndk-bundle = if includeNDK then lib.findFirst (x: x != null) null ndk-bundles else null; ndk-bundle = if includeNDK then lib.findFirst (x: x != null) null ndk-bundles else null;

View file

@ -19,7 +19,7 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "8.1.0"; version = "8.2.0";
pname = "approvaltests"; pname = "approvaltests";
format = "setuptools"; format = "setuptools";
@ -30,7 +30,7 @@ buildPythonPackage rec {
owner = "approvals"; owner = "approvals";
repo = "ApprovalTests.Python"; repo = "ApprovalTests.Python";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-01OgofksXFglohcQtJqkir/nqBJArw3pXEmnX9P7rOA="; hash = "sha256-7OeFOPBOs+SXKOQGKxiigVvoY50+bqRo+oDbVYTMQxU=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -42,7 +42,7 @@ buildPythonPackage {
# Revisit this whenever package or Rust is upgraded # Revisit this whenever package or Rust is upgraded
RUSTC_BOOTSTRAP = 1; RUSTC_BOOTSTRAP = 1;
propagatedBuildInputs = if pythonOlder "3.10" then [ typing-extensions ] else []; propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ typing-extensions ];
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ]; nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];

View file

@ -9,7 +9,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "twitchapi"; pname = "twitchapi";
version = "3.7.0"; version = "3.8.0";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -18,7 +18,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
pname = "twitchAPI"; pname = "twitchAPI";
inherit version; inherit version;
hash = "sha256-zmMzHuaSsuj2MxkmQyzROrZ/zxO0/I7llKlnpZzauDw="; hash = "sha256-gGLSR6XESaUUt31njQJtPeTOKSgVJHlS+UdYhPKvQJQ=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -84,6 +84,7 @@ gem 'jwt'
gem 'kramdown-rfc2629' gem 'kramdown-rfc2629'
gem 'libv8' gem 'libv8'
gem 'libxml-ruby' gem 'libxml-ruby'
gem 'mail'
gem 'magic' gem 'magic'
gem 'markaby' gem 'markaby'
gem 'method_source' gem 'method_source'

View file

@ -12,12 +12,8 @@ stdenv.mkDerivation {
nativeBuildInputs = [ autoconf automake ]; nativeBuildInputs = [ autoconf automake ];
buildInputs = [ libX11 libXt libXpm libXaw ]; buildInputs = [ libX11 libXt libXpm libXaw ];
preConfigure = "autoreconf --install"; preConfigure = "autoreconf --install";
patches = if stdenv.buildPlatform.isDarwin then [ ./darwin.patch ] else []; patches = lib.optionals stdenv.buildPlatform.isDarwin [ ./darwin.patch ];
configureFlags = configureFlags = lib.optionals (localStateDir != null) ["--localstatedir=${localStateDir}"];
if localStateDir != null then
["--localstatedir=${localStateDir}"]
else
[];
meta = with lib; { meta = with lib; {
description = "The falling tower game"; description = "The falling tower game";

View file

@ -7,12 +7,12 @@
, installShellFiles , installShellFiles
}: }:
let let
version = "2.6.3"; version = "2.6.4";
dist = fetchFromGitHub { dist = fetchFromGitHub {
owner = "caddyserver"; owner = "caddyserver";
repo = "dist"; repo = "dist";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-SJO1q4g9uyyky9ZYSiqXJgNIvyxT5RjrpYd20YDx8ec="; hash = "sha256-SJO1q4g9uyyky9ZYSiqXJgNIvyxT5RjrpYd20YDx8ec=";
}; };
in in
buildGoModule { buildGoModule {
@ -23,10 +23,10 @@ buildGoModule {
owner = "caddyserver"; owner = "caddyserver";
repo = "caddy"; repo = "caddy";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-YH+lo6gKqmhu1/3HZdWXnxTXaUwC8To+OCmGpji6i3k="; hash = "sha256-3a3+nFHmGONvL/TyQRqgJtrSDIn0zdGy9YwhZP17mU0=";
}; };
vendorSha256 = "sha256-sqjN+NgwdP2qw7/CBxKvSwwA3teg/trXg/oa1Ff0N8s="; vendorHash = "sha256-toi6efYZobjDV3YPT9seE/WZAzNaxgb1ioVG4txcuXM=";
subPackages = [ "cmd/caddy" ]; subPackages = [ "cmd/caddy" ];

View file

@ -39,6 +39,8 @@ buildGoModule rec {
"-X main.Version=${version}" "-X main.Version=${version}"
]; ];
__darwinAllowLocalNetworking = true;
meta = with lib; { meta = with lib; {
homepage = "https://fly.io/docs/app-guides/run-a-global-image-service"; homepage = "https://fly.io/docs/app-guides/run-a-global-image-service";
changelog = "https://github.com/h2non/${pname}/releases/tag/v${version}"; changelog = "https://github.com/h2non/${pname}/releases/tag/v${version}";

View file

@ -1,6 +1,6 @@
{ lib { lib
, stdenv , stdenv
, boost175 , boost
, fetchFromGitHub , fetchFromGitHub
, libpcap , libpcap
, ndn-cxx , ndn-cxx
@ -16,13 +16,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "nfd"; pname = "nfd";
version = "0.7.1"; version = "22.12";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "named-data"; owner = "named-data";
repo = lib.toUpper pname; repo = lib.toUpper pname;
rev = "NFD-${version}"; rev = "NFD-${version}";
sha256 = "sha256-8Zm8oxbpw9qD31NuofDdgPYnTWIz5E04NhkZhiRkK9E="; sha256 = "sha256-epY5qtET7rsKL3KIKvxfa+wF+AGZbYs+zRhy8SnIffk=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
@ -30,8 +30,8 @@ stdenv.mkDerivation rec {
buildInputs = [ libpcap ndn-cxx openssl websocketpp ] ++ lib.optional withSystemd systemd; buildInputs = [ libpcap ndn-cxx openssl websocketpp ] ++ lib.optional withSystemd systemd;
wafConfigureFlags = [ wafConfigureFlags = [
"--boost-includes=${boost175.dev}/include" "--boost-includes=${boost.dev}/include"
"--boost-libs=${boost175.out}/lib" "--boost-libs=${boost.out}/lib"
"--with-tests" "--with-tests"
] ++ lib.optional (!withWebSocket) "--without-websocket"; ] ++ lib.optional (!withWebSocket) "--without-websocket";
@ -50,6 +50,6 @@ stdenv.mkDerivation rec {
description = "Named Data Networking (NDN) Forwarding Daemon"; description = "Named Data Networking (NDN) Forwarding Daemon";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
platforms = platforms.unix; platforms = platforms.unix;
maintainers = [ lib.maintainers.bertof ]; maintainers = with maintainers; [ bertof ];
}; };
} }

View file

@ -322,7 +322,7 @@ let
}" }"
else else
"key 'meta.${k}' is unrecognized; expected one of: \n [${lib.concatMapStringsSep ", " (x: "'${x}'") (lib.attrNames metaTypes)}]"; "key 'meta.${k}' is unrecognized; expected one of: \n [${lib.concatMapStringsSep ", " (x: "'${x}'") (lib.attrNames metaTypes)}]";
checkMeta = meta: if config.checkMeta then lib.remove null (lib.mapAttrsToList checkMetaAttr meta) else []; checkMeta = meta: lib.optionals config.checkMeta (lib.remove null (lib.mapAttrsToList checkMetaAttr meta));
checkOutputsToInstall = attrs: let checkOutputsToInstall = attrs: let
expectedOutputs = attrs.meta.outputsToInstall or []; expectedOutputs = attrs.meta.outputsToInstall or [];

View file

@ -12,9 +12,9 @@ let
else "/bin/bash"; else "/bin/bash";
path = path =
(if system == "i686-solaris" then [ "/usr/gnu" ] else []) ++ (lib.optionals (system == "i686-solaris") [ "/usr/gnu" ]) ++
(if system == "i686-netbsd" then [ "/usr/pkg" ] else []) ++ (lib.optionals (system == "i686-netbsd") [ "/usr/pkg" ]) ++
(if system == "x86_64-solaris" then [ "/opt/local/gnu" ] else []) ++ (lib.optionals (system == "x86_64-solaris") [ "/opt/local/gnu" ]) ++
["/" "/usr" "/usr/local"]; ["/" "/usr" "/usr/local"];
prehookBase = '' prehookBase = ''

View file

@ -14,21 +14,21 @@
buildGoModule rec { buildGoModule rec {
pname = "pulumi"; pname = "pulumi";
version = "3.54.0"; version = "3.55.0";
# Used in pulumi-language packages, which inherit this prop # Used in pulumi-language packages, which inherit this prop
sdkVendorHash = "sha256-NstNzPKHlN8S+HSpYnG60ZtZtUQsh1Idr8Zz2Ef/jiw="; sdkVendorHash = "sha256-ZE+df01jRx3nDiPGdlh1JNJn5NqsHW22fiUzeNlkzF8=";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-Rl0kh9NCliADfU9Nxc2SwnOIGDilYEeA0rcVCfal5N8="; hash = "sha256-x5XebYFpxFi2QgrrK+wdMFOLiJLnRmar4gsply8F718=";
# Some tests rely on checkout directory name # Some tests rely on checkout directory name
name = "pulumi"; name = "pulumi";
}; };
vendorSha256 = "sha256-Bkmpw+ZneB1zHmaV4S29LFNoCjB2QmO5nR/iwQQQPpo="; vendorSha256 = "sha256-8vchyD3MTi9Fxrd6SiywFK4tadyauvDxjs9RmoJuULA=";
sourceRoot = "${src.name}/pkg"; sourceRoot = "${src.name}/pkg";

View file

@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
"INSTALL=cp" "INSTALL=cp"
]; ];
patches = if (enableNLS && !stdenv.isCygwin) then [ ./natspec-gentoo.patch.bz2 ] else []; patches = lib.optionals (enableNLS && !stdenv.isCygwin) [ ./natspec-gentoo.patch.bz2 ];
buildInputs = lib.optional enableNLS libnatspec buildInputs = lib.optional enableNLS libnatspec
++ lib.optional stdenv.isCygwin libiconv; ++ lib.optional stdenv.isCygwin libiconv;

View file

@ -8,9 +8,10 @@
, Foundation , Foundation
, python3 , python3
, fetchFromGitHub , fetchFromGitHub
, fetchpatch , meson
, autoreconfHook , ninja
, gtk-doc , gtk-doc
, docbook-xsl-nons
, gobject-introspection , gobject-introspection
# Optional dependencies # Optional dependencies
, libjpeg , libjpeg
@ -38,15 +39,15 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "vips"; pname = "vips";
version = "8.13.3"; version = "8.14.1";
outputs = [ "bin" "out" "man" "dev" ]; outputs = [ "bin" "out" "man" "dev" ] ++ lib.optionals (!stdenv.isDarwin) [ "devdoc" ];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "libvips"; owner = "libvips";
repo = "libvips"; repo = "libvips";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-JkG1f2SGLI6tSNlFJ//S37PXIo+L318Mej0bI7p/dVo="; hash = "sha256-ajGVSVjnv78S/Xd3Aqn0N87I7m39DWKZHAQjwbog+5U=";
# Remove unicode file names which leads to different checksums on HFS+ # Remove unicode file names which leads to different checksums on HFS+
# vs. other filesystems because of unicode normalisation. # vs. other filesystems because of unicode normalisation.
postFetch = '' postFetch = ''
@ -56,9 +57,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config pkg-config
autoreconfHook meson
gtk-doc ninja
docbook-xsl-nons
gobject-introspection gobject-introspection
] ++ lib.optionals (!stdenv.isDarwin) [
gtk-doc
]; ];
buildInputs = [ buildInputs = [
@ -95,11 +99,17 @@ stdenv.mkDerivation rec {
glib glib
]; ];
autoreconfPhase = '' mesonFlags = [
NOCONFIGURE=1 ./autogen.sh "-Dcgif=disabled"
''; "-Dspng=disabled"
"-Dpdfium=disabled"
"-Dnifti=disabled"
] ++ lib.optionals (!stdenv.isDarwin) [
"-Dgtk_doc=true"
];
meta = with lib; { meta = with lib; {
changelog = "https://github.com/libvips/libvips/blob/${src.rev}/ChangeLog";
homepage = "https://libvips.github.io/libvips/"; homepage = "https://libvips.github.io/libvips/";
description = "Image processing system for large images"; description = "Image processing system for large images";
license = licenses.lgpl2Plus; license = licenses.lgpl2Plus;

View file

@ -1,6 +1,7 @@
{ lib { lib
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, cmake , cmake
, pkg-config , pkg-config
, glew , glew
@ -25,6 +26,15 @@ stdenv.mkDerivation rec {
sha256 = "sha256-LdBQxw8K8WWSfm4E2QpK4GYTuYvI+FX5gLOouVFSU/U="; sha256 = "sha256-LdBQxw8K8WWSfm4E2QpK4GYTuYvI+FX5gLOouVFSU/U=";
}; };
patches = [
(fetchpatch {
# From Upstream PR#135: https://github.com/naelstrof/slop/pull/135
name = "Fix-linking-of-GLEW-library.patch";
url = "https://github.com/naelstrof/slop/commit/811b7e44648b9dd6c1da1554e70298cf4157e5fe.patch";
sha256 = "sha256-LNUrAeVZUJFNOt1csOaIid7gLBdtqRxp8AcC7f3cnIQ=";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
pkg-config pkg-config

View file

@ -1,6 +1,6 @@
{ lib { lib
, stdenv , stdenv
, boost175 , boost
, fetchFromGitHub , fetchFromGitHub
, libpcap , libpcap
, ndn-cxx , ndn-cxx
@ -12,25 +12,25 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ndn-tools"; pname = "ndn-tools";
version = "0.7.1"; version = "22.12";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "named-data"; owner = "named-data";
repo = pname; repo = pname;
rev = "ndn-tools-${version}"; rev = "ndn-tools-${version}";
sha256 = "sha256-3hE/esOcS/ln94wZIRVCLjWgouEYnJJf3EvirNEGTeA="; sha256 = "sha256-28sPgo2nq5AhIzZmvDz38echGPzKDzNm2J6iIao4yL8=";
}; };
nativeBuildInputs = [ pkg-config sphinx wafHook ]; nativeBuildInputs = [ pkg-config sphinx wafHook ];
buildInputs = [ libpcap ndn-cxx openssl ]; buildInputs = [ libpcap ndn-cxx openssl ];
wafConfigureFlags = [ wafConfigureFlags = [
"--boost-includes=${boost175.dev}/include" "--boost-includes=${boost.dev}/include"
"--boost-libs=${boost175.out}/lib" "--boost-libs=${boost.out}/lib"
# "--with-tests" "--with-tests"
]; ];
doCheck = false; doCheck = false; # some tests fail because of the sandbox environment
checkPhase = '' checkPhase = ''
runHook preCheck runHook preCheck
build/unit-tests build/unit-tests

View file

@ -9,7 +9,7 @@ stdenv.mkDerivation {
path = lib.makeBinPath ([ path = lib.makeBinPath ([
coreutils findutils gnugrep coreutils findutils gnugrep
] ++ (if stdenv.isDarwin then [ darwin.DarwinTools ] else [])); ] ++ (lib.optionals stdenv.isDarwin [ darwin.DarwinTools ]));
is_darwin = if stdenv.isDarwin then "yes" else "no"; is_darwin = if stdenv.isDarwin then "yes" else "no";
sandboxtest = ./sandbox.nix; sandboxtest = ./sandbox.nix;

View file

@ -17,16 +17,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "gpg-tui"; pname = "gpg-tui";
version = "0.9.3"; version = "0.9.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "orhun"; owner = "orhun";
repo = "gpg-tui"; repo = "gpg-tui";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-4Xi4ePFJL56HxCkbTlu4WiCTRzLEqvfbEk/2q9QjAd8="; hash = "sha256-2OMjqY1oTVKyEuCJrGGSQfgjQPSOQRx6LPhoFUuf/pw=";
}; };
cargoHash = "sha256-MEj7c87msMv/+D70EDWmWEHTtmQcx5DEMf2I/AXnwm8="; cargoHash = "sha256-EhnQvVXv08l4ONnuIudU0WBw5AptD7OcvPUNOdpRZj4=";
nativeBuildInputs = [ nativeBuildInputs = [
gpgme # for gpgme-config gpgme # for gpgme-config

View file

@ -82,7 +82,8 @@ rec {
findLhs2TeXIncludes = findLhs2TeXIncludes =
{ rootFile { lib
, rootFile
}: }:
builtins.genericClosure { builtins.genericClosure {
@ -97,7 +98,7 @@ rec {
{ src = key; } { src = key; }
"${pkgs.stdenv.bash}/bin/bash ${./find-lhs2tex-includes.sh}"); "${pkgs.stdenv.bash}/bin/bash ${./find-lhs2tex-includes.sh}");
in pkgs.lib.concatMap (x: if builtins.pathExists x then [{key = x;}] else []) in pkgs.lib.concatMap (x: lib.optionals (builtins.pathExists x) [{key = x;}])
(map (x: dirOf key + ("/" + x)) deps); (map (x: dirOf key + ("/" + x)) deps);
}; };

View file

@ -18099,6 +18099,10 @@ with pkgs;
inherit (darwin.apple_sdk_11_0.frameworks) Virtualization; inherit (darwin.apple_sdk_11_0.frameworks) Virtualization;
}; };
listenbrainz-mpd = callPackage ../applications/audio/listenbrainz-mpd {
inherit (darwin.apple_sdk.frameworks) Security;
};
lit = callPackage ../development/tools/misc/lit { }; lit = callPackage ../development/tools/misc/lit { };
litecli = callPackage ../development/tools/database/litecli {}; litecli = callPackage ../development/tools/database/litecli {};

View file

@ -41,7 +41,7 @@ makeScopeWithSplicing (generateSplicesForMkScope "darwin") (_: {}) (spliced: spl
useAppleSDKLibs = stdenv.hostPlatform.isAarch64; useAppleSDKLibs = stdenv.hostPlatform.isAarch64;
selectAttrs = attrs: names: selectAttrs = attrs: names:
lib.listToAttrs (lib.concatMap (n: if attrs ? "${n}" then [(lib.nameValuePair n attrs."${n}")] else []) names); lib.listToAttrs (lib.concatMap (n: lib.optionals (attrs ? "${n}") [(lib.nameValuePair n attrs."${n}")]) names);
chooseLibs = ( chooseLibs = (
# There are differences in which libraries are exported. Avoid evaluation # There are differences in which libraries are exported. Avoid evaluation

View file

@ -39,9 +39,7 @@ let
attrs: attrs:
if lib.isDerivation attrs if lib.isDerivation attrs
then [ attrs ] then [ attrs ]
else if lib.isAttrs attrs else lib.optionals (lib.isAttrs attrs) (accumulateDerivations (lib.attrValues attrs))
then accumulateDerivations (lib.attrValues attrs)
else []
) jobList; ) jobList;
# names of all subsets of `pkgs.haskell.packages` # names of all subsets of `pkgs.haskell.packages`

View file

@ -24,7 +24,7 @@ let
packagePython value packagePython value
else else
[]); []);
in if res.success then res.value else [] in lib.optionals res.success res.value
); );
jobs = { jobs = {

File diff suppressed because it is too large Load diff