Unverified Commit b614ed0c authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

xbursttools: drop (#416245)

parents 1cd503a0 23d58e6f
Loading
Loading
Loading
Loading
+0 −68
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchgit,
  libusb-compat-0_1,
  libusb1,
  autoconf,
  automake,
  libconfuse,
  pkg-config,
  gccCross ? null,
}:

let
  version = "2011-12-26";
in
stdenv.mkDerivation {
  pname = "xburst-tools";
  inherit version;

  src = fetchgit {
    url = "git://projects.qi-hardware.com/xburst-tools.git";
    rev = "c71ce8e15db25fe49ce8702917cb17720882e341";
    sha256 = "1hzdngs1l5ivvwnxjwzc246am6w1mj1aidcf0awh9yw0crzcjnjr";
  };

  preConfigure = ''
    sh autogen.sh
  '';

  # Workaround build failure on -fno-common toolchains:
  #   mipsel-unknown-linux-uclibc-ld: boothandler.o:(.bss+0x8): multiple definition of
  #     `start_addr'; main.o:(.bss+0x8): first defined here
  NIX_CFLAGS_COMPILE_FOR_TARGET = "-fcommon";

  configureFlags = lib.optionals (gccCross != null) [
    "--enable-firmware"
    "CROSS_COMPILE=${gccCross.targetPrefix}"
  ];

  hardeningDisable = [
    "pic"
    "stackprotector"
  ];

  # Not to strip cross build binaries (this is for the gcc-cross-wrapper)
  dontCrossStrip = true;

  nativeBuildInputs = [
    autoconf
    automake
    pkg-config
  ];
  buildInputs = [
    libusb-compat-0_1
    libusb1
    libconfuse
  ] ++ lib.optional (gccCross != null) gccCross;

  meta = {
    broken = stdenv.hostPlatform.isDarwin;
    description = "Qi tools to access the Ben Nanonote USB_BOOT mode";
    license = lib.licenses.gpl3;
    homepage = "http://www.linux-mtd.infradead.org/";
    maintainers = [ ];
    platforms = lib.platforms.x86_64;
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -2086,6 +2086,7 @@ mapAliases {
  xarchive = throw "'xarchive' has been removed due to lack of maintenance upstream. Consider using 'file-roller' instead"; # Added 2024-10-19
  xbmc-retroarch-advanced-launchers = throw "'xbmc-retroarch-advanced-launchers' has been renamed to/replaced by 'kodi-retroarch-advanced-launchers'"; # Converted to throw 2024-10-17
  xboxdrv = throw "'xboxdrv' has been dropped as it has been superseded by an in-tree kernel driver"; # Added 2024-12-25
  xbursttools = throw "'xbursttools' has been removed as it is broken and unmaintained upstream."; # Added 2025-06-12
  xdg_utils = throw "'xdg_utils' has been renamed to/replaced by 'xdg-utils'"; # Converted to throw 2024-10-17
  xdragon = dragon-drop; # Added 2025-03-22
  xen-light = throw "'xen-light' has been renamed to/replaced by 'xen-slim'"; # Added 2024-06-30
+0 −7
Original line number Diff line number Diff line
@@ -4782,13 +4782,6 @@ with pkgs;
    ocamlPackages = ocaml-ng.ocamlPackages_4_14;
  };
  xbursttools = callPackage ../tools/misc/xburst-tools {
    # It needs a cross compiler for mipsel to build the firmware it will
    # load into the Ben Nanonote
    gccCross = pkgsCross.ben-nanonote.buildPackages.gccWithoutTargetLibc;
    autoconf = buildPackages.autoconf269;
  };
  clipbuzz = callPackage ../tools/misc/clipbuzz {
    zig = buildPackages.zig_0_12;
  };