mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 09:37:40 +00:00
Merge pull request #278777 from tweag/fix-evals
`lib.callPackageWith`: Use abort again instead of throw and fix evaluation errors caused by it
This commit is contained in:
commit
0ed96eed10
@ -203,7 +203,11 @@ rec {
|
||||
|
||||
in if missingArgs == {}
|
||||
then makeOverridable f allArgs
|
||||
else throw "lib.customisation.callPackageWith: ${error}";
|
||||
# This needs to be an abort so it can't be caught with `builtins.tryEval`,
|
||||
# which is used by nix-env and ofborg to filter out packages that don't evaluate.
|
||||
# This way we're forced to fix such errors in Nixpkgs,
|
||||
# which is especially relevant with allowAliases = false
|
||||
else abort "lib.customisation.callPackageWith: ${error}";
|
||||
|
||||
|
||||
/* Like callPackage, but for a function that returns an attribute
|
||||
|
@ -9,14 +9,16 @@
|
||||
, libnotify
|
||||
, libxml2
|
||||
, libcanberra-gtk3
|
||||
, mod_dnssd
|
||||
, apacheHttpd
|
||||
, apacheHttpdPackages
|
||||
, hicolor-icon-theme
|
||||
, mate
|
||||
, wrapGAppsHook
|
||||
, mateUpdateScript
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (apacheHttpdPackages) apacheHttpd mod_dnssd;
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mate-user-share";
|
||||
version = "1.26.0";
|
||||
|
@ -53,7 +53,7 @@ final: _: {
|
||||
autoAddCudaCompatRunpathHook =
|
||||
final.callPackage
|
||||
(
|
||||
{makeSetupHook, cuda_compat}:
|
||||
{makeSetupHook, cuda_compat ? throw "autoAddCudaCompatRunpathHook: No cuda_compat for CUDA ${final.cudaMajorMinorVersion}" }:
|
||||
makeSetupHook
|
||||
{
|
||||
name = "auto-add-cuda-compat-runpath-hook";
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
# dependencies
|
||||
, cmake
|
||||
, dateutil
|
||||
, python-dateutil
|
||||
, dbus-python
|
||||
, dnf4
|
||||
, gettext
|
||||
@ -54,7 +54,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dateutil
|
||||
python-dateutil
|
||||
dbus-python
|
||||
dnf4.py
|
||||
libcomps
|
||||
|
@ -3,7 +3,7 @@
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, argparse-dataclass
|
||||
, ConfigArgParse
|
||||
, configargparse
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -24,7 +24,7 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [
|
||||
argparse-dataclass
|
||||
ConfigArgParse
|
||||
configargparse
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "snakemake_interface_common" ];
|
||||
|
@ -13,7 +13,7 @@
|
||||
, aiosqlite
|
||||
, asyncmy
|
||||
, asyncpg
|
||||
, cx_oracle
|
||||
, cx-oracle
|
||||
, mariadb
|
||||
, mypy
|
||||
, mysql-connector
|
||||
@ -79,7 +79,7 @@ buildPythonPackage rec {
|
||||
mariadb
|
||||
];
|
||||
oracle = [
|
||||
cx_oracle
|
||||
cx-oracle
|
||||
];
|
||||
postgresql = [
|
||||
psycopg2
|
||||
|
@ -1,9 +1,9 @@
|
||||
{ hello, checkpointBuildTools, runCommandNoCC, texinfo, stdenv, rsync }:
|
||||
{ hello, checkpointBuildTools, runCommand, texinfo, stdenv, rsync }:
|
||||
let
|
||||
baseHelloArtifacts = checkpointBuildTools.prepareCheckpointBuild hello;
|
||||
patchedHello = hello.overrideAttrs (old: {
|
||||
buildInputs = [ texinfo ];
|
||||
src = runCommandNoCC "patch-hello-src" { } ''
|
||||
src = runCommand "patch-hello-src" { } ''
|
||||
mkdir -p $out
|
||||
cd $out
|
||||
tar xf ${hello.src} --strip-components=1
|
||||
@ -24,7 +24,7 @@ let
|
||||
patches = [ ./hello-additionalFile.patch ];
|
||||
}));
|
||||
|
||||
preparedHelloRemoveFileSrc = runCommandNoCC "patch-hello-src" { } ''
|
||||
preparedHelloRemoveFileSrc = runCommand "patch-hello-src" { } ''
|
||||
mkdir -p $out
|
||||
cd $out
|
||||
tar xf ${hello.src} --strip-components=1
|
||||
@ -33,7 +33,7 @@ let
|
||||
|
||||
patchedHelloRemoveFile = hello.overrideAttrs (old: {
|
||||
buildInputs = [ texinfo ];
|
||||
src = runCommandNoCC "patch-hello-src" { } ''
|
||||
src = runCommand "patch-hello-src" { } ''
|
||||
mkdir -p $out
|
||||
cd $out
|
||||
${rsync}/bin/rsync -cutU --chown=$USER:$USER --chmod=+w -r ${preparedHelloRemoveFileSrc}/* .
|
||||
|
@ -30292,7 +30292,7 @@ with pkgs;
|
||||
aaxtomp3 = callPackage ../applications/audio/aaxtomp3 { };
|
||||
|
||||
abcde = callPackage ../applications/audio/abcde {
|
||||
inherit (python3Packages) eyeD3;
|
||||
inherit (python3Packages) eyed3;
|
||||
};
|
||||
|
||||
abiword = callPackage ../applications/office/abiword { };
|
||||
|
Loading…
Reference in New Issue
Block a user