diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-01-20 19:44:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 19:44:38 +0100 |
commit | 7eabc55c90ea287f25cadf0f6176054083aa9f9f (patch) | |
tree | 1c9c7d362da6fffabdac0453da4c3780cf6e3031 /pkgs/tools | |
parent | 199ffe40e6c7fed7a2dd9d9b9f6bdd69456aa053 (diff) | |
parent | 1d260dad5ad0b473115f6b33014222d542e90c58 (diff) |
Merge pull request #110188 from Emantor/pkg/rauc
rauc: init at 1.5
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/rauc/default.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/tools/misc/rauc/default.nix b/pkgs/tools/misc/rauc/default.nix new file mode 100644 index 0000000000000..c5f84601a6dc6 --- /dev/null +++ b/pkgs/tools/misc/rauc/default.nix @@ -0,0 +1,50 @@ +{ autoreconfHook +, curl +, dbus +, fetchFromGitHub +, glib +, json-glib +, lib +, nix-update-script +, openssl +, pkg-config +, stdenv +}: + +stdenv.mkDerivation rec { + pname = "rauc"; + version = "1.5"; + + src = fetchFromGitHub { + owner = pname; + repo = pname; + rev = "v${version}"; + sha256 = "10v9nllfw5y53797p00hk6645zkaa6cacsim1rh6y2jngnqfkmw0"; + }; + + passthru = { + updateScript = nix-update-script { + attrPath = pname; + }; + }; + + enableParallelBuilding = true; + + nativeBuildInputs = [ pkg-config autoreconfHook ]; + + buildInputs = [ curl dbus glib json-glib openssl ]; + + configureFlags = [ + "--with-dbusinterfacesdir=${placeholder "out"}/share/dbus-1/interfaces" + "--with-dbuspolicydir=${placeholder "out"}/share/dbus-1/systemd.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.lgpl21; + maintainers = with maintainers; [ emantor ]; + platforms = with platforms; linux; + }; +} |