2021-01-18 11:00:17 +00:00
|
|
|
{ mkDerivation,
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
curl,
|
|
|
|
libarchive,
|
|
|
|
util-linux,
|
|
|
|
qtbase,
|
|
|
|
qtdeclarative,
|
|
|
|
qtsvg,
|
|
|
|
qttools,
|
|
|
|
qtquickcontrols2,
|
|
|
|
qtgraphicaleffects
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "rpi-imager";
|
2021-03-17 17:51:27 +00:00
|
|
|
version = "1.6";
|
2021-01-18 11:00:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raspberrypi";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-03-17 17:51:27 +00:00
|
|
|
sha256 = "sha256-wX9EO5hgEM2ftOov0AERloH6GxrwptWltBYWLFXkPUw=";
|
2021-01-18 11:00:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
|
|
|
curl
|
|
|
|
libarchive
|
|
|
|
util-linux
|
|
|
|
qtbase
|
|
|
|
qtdeclarative
|
|
|
|
qtsvg
|
|
|
|
qttools
|
|
|
|
qtquickcontrols2
|
|
|
|
qtgraphicaleffects
|
|
|
|
];
|
|
|
|
|
|
|
|
/* By default, the builder checks for JSON support in lsblk by running "lsblk --json",
|
|
|
|
but that throws an error, as /sys/dev doesn't exist in the sandbox.
|
|
|
|
This patch removes the check. */
|
|
|
|
patches = [ ./lsblkCheckFix.patch ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Raspberry Pi Imaging Utility";
|
|
|
|
homepage = "https://www.raspberrypi.org/software/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ymarkus ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
# does not build on darwin
|
|
|
|
broken = stdenv.isDarwin;
|
|
|
|
};
|
|
|
|
}
|