ae91cbe6cc
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{ mkDerivation,
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
curl,
|
|
libarchive,
|
|
util-linux,
|
|
qtbase,
|
|
qtdeclarative,
|
|
qtsvg,
|
|
qttools,
|
|
qtquickcontrols2,
|
|
qtgraphicaleffects
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "rpi-imager";
|
|
version = "1.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "raspberrypi";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0596c7rpkykmjr3gsz9yczqsj7fzq04kc97s0rqkygjnwiqh2rwz";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|