mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
bc6b09791e
* rauc: 1.5.1 -> 1.6 (#159728) * rauc: use SPDX3 license identifier Co-authored-by: Renaud <c0bw3b@users.noreply.github.com>
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ autoreconfHook
|
|
, curl
|
|
, dbus
|
|
, fetchFromGitHub
|
|
, glib
|
|
, json-glib
|
|
, lib
|
|
, nix-update-script
|
|
, openssl
|
|
, pkg-config
|
|
, stdenv
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rauc";
|
|
version = "1.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-HBeH9vzzfY7pG88xyoL+NJ78LMGphCAfyZiOxFSJnnc=";
|
|
};
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script {
|
|
attrPath = pname;
|
|
};
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
|
|
|
buildInputs = [ curl dbus glib json-glib openssl ];
|
|
|
|
configureFlags = [
|
|
"--with-systemdunitdir=${placeholder "out"}/lib/systemd/system"
|
|
"--with-dbusinterfacesdir=${placeholder "out"}/share/dbus-1/interfaces"
|
|
"--with-dbuspolicydir=${placeholder "out"}/share/dbus-1/system.d"
|
|
"--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";
|
|
license = licenses.lgpl21Only;
|
|
maintainers = with maintainers; [ emantor ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|