21 src = fetchFromGitHub {
22 owner = "raspberrypi";
25 sha256 = "sha256-D2FNg8SEUDQA466jfxBFhK0t8/5WJHx1fBTaCH0N+UQ=";
28 nativeBuildInputs = [ cmake util-linux ];
41 sourceRoot = "${src.name}/src";
43 /* By default, the builder checks for JSON support in lsblk by running "lsblk --json",
44 but that throws an error, as /sys/dev doesn't exist in the sandbox.
45 This patch removes the check. */
46 patches = [ ./lsblkCheckFix.patch ];
49 description = "Raspberry Pi Imaging Utility";
50 homepage = "https://www.raspberrypi.org/software/";
51 downloadPage = "https://github.com/raspberrypi/rpi-imager/";
52 license = licenses.asl20;
53 maintainers = with maintainers; [ ymarkus ];
54 platforms = platforms.all;
55 # does not build on darwin
56 broken = stdenv.isDarwin;