2023-03-05 23:47:12 +00:00
|
|
|
{ curl
|
2021-01-20 16:38:13 +00:00
|
|
|
, dbus
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, json-glib
|
|
|
|
, lib
|
|
|
|
, nix-update-script
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, stdenv
|
2023-03-05 23:47:12 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, util-linux
|
|
|
|
, libnl
|
|
|
|
, systemd
|
2021-01-20 16:38:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rauc";
|
2023-08-07 04:11:54 +00:00
|
|
|
version = "1.10.1";
|
2021-01-20 16:38:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-08-07 04:11:54 +00:00
|
|
|
sha256 = "sha256-KxU8/ExRsyqhV3np1EqAzpFm0Uy4fY/oi9lS2GBYHZE=";
|
2021-01-20 16:38:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
2022-12-25 22:11:14 +00:00
|
|
|
updateScript = nix-update-script { };
|
2021-01-20 16:38:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2023-05-31 11:29:29 +00:00
|
|
|
nativeBuildInputs = [ pkg-config meson ninja glib ];
|
2021-01-20 16:38:13 +00:00
|
|
|
|
2023-03-05 23:47:12 +00:00
|
|
|
buildInputs = [ curl dbus glib json-glib openssl util-linux libnl systemd ];
|
2021-01-20 16:38:13 +00:00
|
|
|
|
2023-03-05 23:47:12 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"--buildtype=release"
|
|
|
|
(lib.mesonOption "systemdunitdir" "${placeholder "out"}/lib/systemd/system")
|
|
|
|
(lib.mesonOption "dbusinterfacesdir" "${placeholder "out"}/share/dbus-1/interfaces")
|
|
|
|
(lib.mesonOption "dbuspolicydir" "${placeholder "out"}/share/dbus-1/system.d")
|
|
|
|
(lib.mesonOption "dbussystemservicedir" "${placeholder "out"}/share/dbus-1/system-services")
|
2021-01-20 16:38:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Safe and secure software updates for embedded Linux";
|
|
|
|
homepage = "https://rauc.io";
|
2022-03-05 22:47:03 +00:00
|
|
|
license = licenses.lgpl21Only;
|
2021-01-20 16:38:13 +00:00
|
|
|
maintainers = with maintainers; [ emantor ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|