You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.2 KiB

9 months ago
9 months ago
  1. { stdenv, lib, buildPackages
  2. , fetchurl, zlib
  3. , platform, target
  4. }:
  5. stdenv.mkDerivation rec {
  6. basename = "binutils";
  7. inherit platform;
  8. version = "2.30";
  9. name = "${basename}-${platform}-${version}";
  10. src = fetchurl {
  11. url = "https://ftp.gnu.org/gnu/binutils/binutils-${version}.tar.bz2";
  12. sha256 = "028cklfqaab24glva1ks2aqa1zxa6w6xmc8q34zs1sb7h22dxspg";
  13. };
  14. configureFlags =
  15. [ "--enable-shared" "--enable-deterministic-archives" "--target=${target}"];
  16. outputs = [ "out" "info" "man" ];
  17. depsBuildBuild = [ buildPackages.stdenv.cc ];
  18. buildInputs = [ zlib ];
  19. enableParallelBuilding = true;
  20. meta = {
  21. description = "Tools for manipulating binaries (linker, assembler, etc.)";
  22. longDescription = ''
  23. The GNU Binutils are a collection of binary tools. The main
  24. ones are `ld' (the GNU linker) and `as' (the GNU assembler).
  25. They also include the BFD (Binary File Descriptor) library,
  26. `gprof', `nm', `strip', etc.
  27. '';
  28. homepage = http://www.gnu.org/software/binutils/;
  29. license = lib.licenses.gpl3Plus;
  30. /* Give binutils a lower priority than gcc-wrapper to prevent a
  31. collision due to the ld/as wrappers/symlinks in the latter. */
  32. priority = "10";
  33. };
  34. }