Loading pkgs/tools/misc/rpi-imager/default.nix +24 −19 Original line number Diff line number Diff line { mkDerivation, stdenv, lib, fetchFromGitHub, cmake, curl, libarchive, util-linux, qtbase, qtdeclarative, qtsvg, qttools, qtquickcontrols2, qtgraphicaleffects { lib , stdenv , fetchFromGitHub , wrapQtAppsHook , cmake , util-linux , curl , libarchive , qtbase , qtdeclarative , qtsvg , qttools , qtquickcontrols2 , qtgraphicaleffects }: mkDerivation rec { stdenv.mkDerivation rec { pname = "rpi-imager"; version = "1.7.4"; version = "1.7.5"; src = fetchFromGitHub { owner = "raspberrypi"; repo = pname; rev = "v${version}"; sha256 = "sha256-ahETmUhlPZ3jpxmzDK5pS6yLc6UxCJFOtWolAtSrDVQ="; sha256 = "sha256-yB+H1zWL40KzxOrBuvg7nBC3zmWilsOgOW7ndiDWuDA="; }; nativeBuildInputs = [ cmake util-linux ]; nativeBuildInputs = [ cmake util-linux wrapQtAppsHook ]; buildInputs = [ curl Loading @@ -47,7 +51,8 @@ mkDerivation rec { meta = with lib; { description = "Raspberry Pi Imaging Utility"; homepage = "https://www.raspberrypi.org/software/"; homepage = "https://www.raspberrypi.com/software/"; changelog = "https://github.com/raspberrypi/rpi-imager/releases/tag/v${version}"; downloadPage = "https://github.com/raspberrypi/rpi-imager/"; license = licenses.asl20; maintainers = with maintainers; [ ymarkus ]; Loading pkgs/tools/misc/rpi-imager/lsblkCheckFix.patch +4 −4 Original line number Diff line number Diff line diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d7fc79..8ce72b9 100644 index 170ce7a..063a137 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -229,11 +229,6 @@ else() @@ -332,11 +332,6 @@ else() if (NOT LSBLK) message(FATAL_ERROR "Unable to locate lsblk (used for disk enumeration)") endif() - - execute_process(COMMAND "${LSBLK}" "--json" RESULT_VARIABLE ret) - execute_process(COMMAND "${LSBLK}" "--json" OUTPUT_QUIET RESULT_VARIABLE ret) - if (ret EQUAL "1") - message(FATAL_ERROR "util-linux package too old. lsblk does not support --json (used for disk enumeration)") - endif() Loading Loading
pkgs/tools/misc/rpi-imager/default.nix +24 −19 Original line number Diff line number Diff line { mkDerivation, stdenv, lib, fetchFromGitHub, cmake, curl, libarchive, util-linux, qtbase, qtdeclarative, qtsvg, qttools, qtquickcontrols2, qtgraphicaleffects { lib , stdenv , fetchFromGitHub , wrapQtAppsHook , cmake , util-linux , curl , libarchive , qtbase , qtdeclarative , qtsvg , qttools , qtquickcontrols2 , qtgraphicaleffects }: mkDerivation rec { stdenv.mkDerivation rec { pname = "rpi-imager"; version = "1.7.4"; version = "1.7.5"; src = fetchFromGitHub { owner = "raspberrypi"; repo = pname; rev = "v${version}"; sha256 = "sha256-ahETmUhlPZ3jpxmzDK5pS6yLc6UxCJFOtWolAtSrDVQ="; sha256 = "sha256-yB+H1zWL40KzxOrBuvg7nBC3zmWilsOgOW7ndiDWuDA="; }; nativeBuildInputs = [ cmake util-linux ]; nativeBuildInputs = [ cmake util-linux wrapQtAppsHook ]; buildInputs = [ curl Loading @@ -47,7 +51,8 @@ mkDerivation rec { meta = with lib; { description = "Raspberry Pi Imaging Utility"; homepage = "https://www.raspberrypi.org/software/"; homepage = "https://www.raspberrypi.com/software/"; changelog = "https://github.com/raspberrypi/rpi-imager/releases/tag/v${version}"; downloadPage = "https://github.com/raspberrypi/rpi-imager/"; license = licenses.asl20; maintainers = with maintainers; [ ymarkus ]; Loading
pkgs/tools/misc/rpi-imager/lsblkCheckFix.patch +4 −4 Original line number Diff line number Diff line diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d7fc79..8ce72b9 100644 index 170ce7a..063a137 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -229,11 +229,6 @@ else() @@ -332,11 +332,6 @@ else() if (NOT LSBLK) message(FATAL_ERROR "Unable to locate lsblk (used for disk enumeration)") endif() - - execute_process(COMMAND "${LSBLK}" "--json" RESULT_VARIABLE ret) - execute_process(COMMAND "${LSBLK}" "--json" OUTPUT_QUIET RESULT_VARIABLE ret) - if (ret EQUAL "1") - message(FATAL_ERROR "util-linux package too old. lsblk does not support --json (used for disk enumeration)") - endif() Loading