Files
nixpkgs/pkgs/by-name/ra/rauc/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

75 lines
1.5 KiB
Nix

{
composefs,
curl,
dbus,
fetchFromGitHub,
glib,
json-glib,
lib,
nix-update-script,
openssl,
pkg-config,
stdenv,
meson,
ninja,
util-linux,
libnl,
systemd,
}:
stdenv.mkDerivation rec {
pname = "rauc";
version = "1.14";
src = fetchFromGitHub {
owner = "rauc";
repo = "rauc";
rev = "v${version}";
sha256 = "sha256-tpynDSCQ8E5DE82BvIJ2lEmwFQQpyYkV9UqjKKlArpw=";
};
passthru = {
updateScript = nix-update-script { };
};
enableParallelBuilding = true;
nativeBuildInputs = [
pkg-config
meson
ninja
glib
];
buildInputs = [
composefs
curl
dbus
glib
json-glib
openssl
util-linux
libnl
systemd
];
mesonFlags = [
"--buildtype=release"
(lib.mesonEnable "composefs" true)
(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")
(lib.mesonOption "systemdcatalogdir" "${placeholder "out"}/lib/systemd/catalog")
];
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;
mainProgram = "rauc";
};
}