2023-03-06 00:47:12 +01:00
|
|
|
{ curl
|
2021-01-20 17:38:13 +01:00
|
|
|
, dbus
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, json-glib
|
|
|
|
, lib
|
|
|
|
, nix-update-script
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, stdenv
|
2023-03-06 00:47:12 +01:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, util-linux
|
|
|
|
, libnl
|
|
|
|
, systemd
|
2021-01-20 17:38:13 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rauc";
|
2023-08-07 06:11:54 +02:00
|
|
|
version = "1.10.1";
|
2021-01-20 17:38:13 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-08-07 06:11:54 +02:00
|
|
|
sha256 = "sha256-KxU8/ExRsyqhV3np1EqAzpFm0Uy4fY/oi9lS2GBYHZE=";
|
2021-01-20 17:38:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
2022-12-25 23:11:14 +01:00
|
|
|
updateScript = nix-update-script { };
|
2021-01-20 17:38:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2023-05-31 13:29:29 +02:00
|
|
|
nativeBuildInputs = [ pkg-config meson ninja glib ];
|
2021-01-20 17:38:13 +01:00
|
|
|
|
2023-03-06 00:47:12 +01:00
|
|
|
buildInputs = [ curl dbus glib json-glib openssl util-linux libnl systemd ];
|
2021-01-20 17:38:13 +01:00
|
|
|
|
2023-03-06 00:47:12 +01: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 17:38:13 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Safe and secure software updates for embedded Linux";
|
|
|
|
homepage = "https://rauc.io";
|
2022-03-05 23:47:03 +01:00
|
|
|
license = licenses.lgpl21Only;
|
2021-01-20 17:38:13 +01:00
|
|
|
maintainers = with maintainers; [ emantor ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|