From 9d1350d9d56411b685ff3de5839ed6728b1bf808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 6 Jul 2021 21:07:32 +0200 Subject: [PATCH 1/2] Merge #129412: makeself: disable tests for now Also improve the busybox-sandbox-shell. (cherry picked from commit 00c86ad14639887ec495b92ada9cd93a75317686) The makeself problem is blocking the nixos-21.05 channel now. --- pkgs/applications/misc/makeself/default.nix | 9 ++++++--- pkgs/os-specific/linux/busybox/sandbox-shell.nix | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/makeself/default.nix b/pkgs/applications/misc/makeself/default.nix index e60e110087f..12d4f62a783 100644 --- a/pkgs/applications/misc/makeself/default.nix +++ b/pkgs/applications/misc/makeself/default.nix @@ -12,9 +12,12 @@ stdenv.mkDerivation rec { sha256 = "07cq7q71bv3fwddkp2863ylry2ivds00f8sjy8npjpdbkailxm21"; }; - patchPhase = "patchShebangs test"; + postPatch = "patchShebangs test"; - doCheck = true; + # Issue #110149: our default /bin/sh apparently has 32-bit math only + # (attribute busybox-sandbox-shell), and that causes problems + # when running these tests inside build, based on free disk space. + doCheck = false; checkTarget = "test"; checkInputs = [ which zstd pbzip2 ]; @@ -31,7 +34,7 @@ stdenv.mkDerivation rec { ''; meta = with lib; { - homepage = "http://megastep.org/makeself"; + homepage = "https://makeself.io"; description = "Utility to create self-extracting packages"; license = licenses.gpl2; maintainers = [ maintainers.wmertens ]; diff --git a/pkgs/os-specific/linux/busybox/sandbox-shell.nix b/pkgs/os-specific/linux/busybox/sandbox-shell.nix index f5db0b25f18..fa70e5f91d8 100644 --- a/pkgs/os-specific/linux/busybox/sandbox-shell.nix +++ b/pkgs/os-specific/linux/busybox/sandbox-shell.nix @@ -8,6 +8,7 @@ busybox.override { CONFIG_FEATURE_FANCY_ECHO y CONFIG_FEATURE_SH_MATH y CONFIG_FEATURE_SH_MATH_64 y + CONFIG_FEATURE_TEST_64 y CONFIG_ASH y CONFIG_ASH_OPTIMIZE_FOR_SIZE y From a5a9936a6051443e7df88a4edc73473c074cff91 Mon Sep 17 00:00:00 2001 From: Ben Siraphob Date: Wed, 7 Jul 2021 00:24:47 +0700 Subject: [PATCH 2/2] electron-cash: fix build on darwin (cherry picked from commit a2c311fc1d178fe59c6296a2ef8901e11defa5cf) --- pkgs/applications/misc/electron-cash/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/electron-cash/default.nix b/pkgs/applications/misc/electron-cash/default.nix index c852620d798..4f8c5f8bb8b 100644 --- a/pkgs/applications/misc/electron-cash/default.nix +++ b/pkgs/applications/misc/electron-cash/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitHub, python3Packages, qtbase, fetchpatch, wrapQtAppsHook +{ lib, stdenv, fetchFromGitHub, python3Packages, qtbase, fetchpatch, wrapQtAppsHook , secp256k1 }: python3Packages.buildPythonApplication rec { @@ -61,7 +61,7 @@ python3Packages.buildPythonApplication rec { pytest electroncash/tests ''; - postInstall = '' + postInstall = lib.optionalString stdenv.isLinux '' substituteInPlace $out/share/applications/electron-cash.desktop \ --replace "Exec=electron-cash" "Exec=$out/bin/electron-cash" ''; @@ -92,7 +92,7 @@ python3Packages.buildPythonApplication rec { of the blockchain. ''; homepage = "https://www.electroncash.org/"; - platforms = platforms.linux; + platforms = platforms.unix; maintainers = with maintainers; [ lassulus nyanloutre oxalica ]; license = licenses.mit; };