rauc: switch buildsystem to meson
Adjust the buildsystem to use meson instead of autotools and add additional dependencies. Also add a page to install the man page when using meson.
This commit is contained in:
parent
a2393d3647
commit
b2d958c94f
|
@ -1,7 +1,7 @@
|
||||||
{ autoreconfHook
|
{ curl
|
||||||
, curl
|
|
||||||
, dbus
|
, dbus
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, glib
|
, glib
|
||||||
, json-glib
|
, json-glib
|
||||||
, lib
|
, lib
|
||||||
|
@ -9,6 +9,11 @@
|
||||||
, openssl
|
, openssl
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, stdenv
|
, stdenv
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, util-linux
|
||||||
|
, libnl
|
||||||
|
, systemd
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -22,21 +27,29 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "sha256-VpHcJUTRZ5aJyfYypjVsYyRNrK0+9ci42mmlZQSkWAk=";
|
sha256 = "sha256-VpHcJUTRZ5aJyfYypjVsYyRNrK0+9ci42mmlZQSkWAk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
# Patch to install the man page when using meson, remove on package bump
|
||||||
|
url = "https://github.com/rauc/rauc/commit/756c677d031c435070a6900e6778d06961822261.patch";
|
||||||
|
hash = "sha256-QgIUagioRo61PeC0JyKjZtnauFiYP1Fz9wrxGEikBGI=";
|
||||||
|
})
|
||||||
|
];
|
||||||
passthru = {
|
passthru = {
|
||||||
updateScript = nix-update-script { };
|
updateScript = nix-update-script { };
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
nativeBuildInputs = [ pkg-config meson ninja ];
|
||||||
|
|
||||||
buildInputs = [ curl dbus glib json-glib openssl ];
|
buildInputs = [ curl dbus glib json-glib openssl util-linux libnl systemd ];
|
||||||
|
|
||||||
configureFlags = [
|
mesonFlags = [
|
||||||
"--with-systemdunitdir=${placeholder "out"}/lib/systemd/system"
|
"--buildtype=release"
|
||||||
"--with-dbusinterfacesdir=${placeholder "out"}/share/dbus-1/interfaces"
|
(lib.mesonOption "systemdunitdir" "${placeholder "out"}/lib/systemd/system")
|
||||||
"--with-dbuspolicydir=${placeholder "out"}/share/dbus-1/system.d"
|
(lib.mesonOption "dbusinterfacesdir" "${placeholder "out"}/share/dbus-1/interfaces")
|
||||||
"--with-dbussystemservicedir=${placeholder "out"}/share/dbus-1/system-services"
|
(lib.mesonOption "dbuspolicydir" "${placeholder "out"}/share/dbus-1/system.d")
|
||||||
|
(lib.mesonOption "dbussystemservicedir" "${placeholder "out"}/share/dbus-1/system-services")
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue