2021-01-20 17:38:13 +01:00
|
|
|
{ autoreconfHook
|
|
|
|
, curl
|
|
|
|
, dbus
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, json-glib
|
|
|
|
, lib
|
|
|
|
, nix-update-script
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rauc";
|
2022-03-05 23:47:03 +01:00
|
|
|
version = "1.6";
|
2021-01-20 17:38:13 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-03-05 23:47:03 +01:00
|
|
|
sha256 = "sha256-HBeH9vzzfY7pG88xyoL+NJ78LMGphCAfyZiOxFSJnnc=";
|
2021-01-20 17:38:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
|
|
|
|
|
|
|
buildInputs = [ curl dbus glib json-glib openssl ];
|
|
|
|
|
|
|
|
configureFlags = [
|
2021-07-06 09:48:07 +02:00
|
|
|
"--with-systemdunitdir=${placeholder "out"}/lib/systemd/system"
|
2021-01-20 17:38:13 +01:00
|
|
|
"--with-dbusinterfacesdir=${placeholder "out"}/share/dbus-1/interfaces"
|
2021-07-08 10:38:03 +02:00
|
|
|
"--with-dbuspolicydir=${placeholder "out"}/share/dbus-1/system.d"
|
2021-01-20 17:38:13 +01:00
|
|
|
"--with-dbussystemservicedir=${placeholder "out"}/share/dbus-1/system-services"
|
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|