From 019fef6929007c7ab0bec2912190afe2a24348f3 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Mon, 4 Dec 2023 16:04:24 +0100 Subject: [PATCH] zyxel-bootconfig: init at no version This tool is useful for manipulating the A/B boot status of the image. --- pkgs/default.nix | 1 + pkgs/zyxel-bootconfig/default.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 pkgs/zyxel-bootconfig/default.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index 558e266..e2257b6 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -79,6 +79,7 @@ in { lzma = callPackage ./lzma {}; mac80211 = callPackage ./mac80211 {}; + zyxel-bootconfig = callPackage ./zyxel-bootconfig {}; min-collect-garbage = callPackage ./min-collect-garbage {}; min-copy-closure = callPackage ./min-copy-closure {}; netlink-lua = callPackage ./netlink-lua {}; diff --git a/pkgs/zyxel-bootconfig/default.nix b/pkgs/zyxel-bootconfig/default.nix new file mode 100644 index 0000000..ead47e6 --- /dev/null +++ b/pkgs/zyxel-bootconfig/default.nix @@ -0,0 +1,13 @@ +{ + stdenv +, openwrt +}: +stdenv.mkDerivation { + name = "zyxel-bootconfig"; + inherit (openwrt) src; + sourceRoot = "openwrt-source/package/utils/zyxel-bootconfig/src"; + installPhase = '' + mkdir -p $out/bin + install -Dm644 zyxel-bootconfig $out/bin/zyxel-bootconfig + ''; +}