mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{ mkDerivation,
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
curl,
|
|
libarchive,
|
|
util-linux,
|
|
qtbase,
|
|
qtdeclarative,
|
|
qtsvg,
|
|
qttools,
|
|
qtquickcontrols2,
|
|
qtgraphicaleffects
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "rpi-imager";
|
|
version = "1.6.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "raspberrypi";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-ITn31ENEf2bysgJgV3u+NNPXk1pfIkUyJWIvS2DOrzY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake util-linux ];
|
|
|
|
buildInputs = [
|
|
curl
|
|
libarchive
|
|
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/";
|
|
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;
|
|
};
|
|
}
|