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