1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{ mkDerivation,
stdenv,
lib,
fetchFromGitHub,
cmake,
curl,
libarchive,
util-linux,
qtbase,
qtdeclarative,
qtsvg,
qttools,
qtquickcontrols2,
qtgraphicaleffects
}:
mkDerivation rec {
pname = "rpi-imager";
version = "1.7.4";
src = fetchFromGitHub {
owner = "raspberrypi";
repo = pname;
rev = "v${version}";
sha256 = "sha256-ahETmUhlPZ3jpxmzDK5pS6yLc6UxCJFOtWolAtSrDVQ=";
};
nativeBuildInputs = [ cmake util-linux ];
buildInputs = [
curl
libarchive
qtbase
qtdeclarative
qtsvg
qttools
qtquickcontrols2
qtgraphicaleffects
];
sourceRoot = "${src.name}/src";
/* 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/";
downloadPage = "https://github.com/raspberrypi/rpi-imager/";
license = licenses.asl20;
maintainers = with maintainers; [ ymarkus ];
platforms = platforms.all;
# does not build on darwin
broken = stdenv.isDarwin;
};
}
|