Loading pkgs/development/tools/misc/binutils/default.nix +4 −16 Original line number Diff line number Diff line Loading @@ -8,7 +8,6 @@ in , buildPackages , fetchFromGitHub , fetchurl , flex , gettext , lib , noSysDirs Loading @@ -34,19 +33,6 @@ let version = "2.43.1"; srcs = { normal = fetchurl { url = "mirror://gnu/binutils/binutils-${version}.tar.bz2"; hash = "sha256-vsqsXSleA3WHtjpC+tV/49nXuD9HjrJLZ/nuxdDxhy8="; }; vc4-none = fetchFromGitHub { owner = "itszor"; repo = "binutils-vc4"; rev = "708acc851880dbeda1dd18aca4fd0a95b2573b36"; sha256 = "1kdrz6fki55lm15rwwamn74fnqpy0zlafsida2zymk76n3656c63"; }; }; #INFO: The targetPrefix prepended to binary names to allow multiple binuntils # on the PATH to both be usable. targetPrefix = lib.optionalString (targetPlatform != hostPlatform) "${targetPlatform.config}-"; Loading @@ -56,7 +42,10 @@ stdenv.mkDerivation (finalAttrs: { pname = targetPrefix + "binutils"; inherit version; src = srcs.${targetPlatform.system} or srcs.normal; src = fetchurl { url = "mirror://gnu/binutils/binutils-${version}.tar.bz2"; hash = "sha256-vsqsXSleA3WHtjpC+tV/49nXuD9HjrJLZ/nuxdDxhy8="; }; # WARN: this package is used for bootstrapping fetchurl, and thus cannot use # fetchpatch! All mutable patches (generated by GitHub or cgit) that are Loading Loading @@ -116,7 +105,6 @@ stdenv.mkDerivation (finalAttrs: { perl ] ++ lib.optionals buildPlatform.isDarwin [ autoconf269 automake gettext libtool ] ++ lib.optionals targetPlatform.isVc4 [ flex ] ; buildInputs = [ zlib gettext ] ++ lib.optionals hostPlatform.isDarwin [ CoreServices ]; Loading Loading
pkgs/development/tools/misc/binutils/default.nix +4 −16 Original line number Diff line number Diff line Loading @@ -8,7 +8,6 @@ in , buildPackages , fetchFromGitHub , fetchurl , flex , gettext , lib , noSysDirs Loading @@ -34,19 +33,6 @@ let version = "2.43.1"; srcs = { normal = fetchurl { url = "mirror://gnu/binutils/binutils-${version}.tar.bz2"; hash = "sha256-vsqsXSleA3WHtjpC+tV/49nXuD9HjrJLZ/nuxdDxhy8="; }; vc4-none = fetchFromGitHub { owner = "itszor"; repo = "binutils-vc4"; rev = "708acc851880dbeda1dd18aca4fd0a95b2573b36"; sha256 = "1kdrz6fki55lm15rwwamn74fnqpy0zlafsida2zymk76n3656c63"; }; }; #INFO: The targetPrefix prepended to binary names to allow multiple binuntils # on the PATH to both be usable. targetPrefix = lib.optionalString (targetPlatform != hostPlatform) "${targetPlatform.config}-"; Loading @@ -56,7 +42,10 @@ stdenv.mkDerivation (finalAttrs: { pname = targetPrefix + "binutils"; inherit version; src = srcs.${targetPlatform.system} or srcs.normal; src = fetchurl { url = "mirror://gnu/binutils/binutils-${version}.tar.bz2"; hash = "sha256-vsqsXSleA3WHtjpC+tV/49nXuD9HjrJLZ/nuxdDxhy8="; }; # WARN: this package is used for bootstrapping fetchurl, and thus cannot use # fetchpatch! All mutable patches (generated by GitHub or cgit) that are Loading Loading @@ -116,7 +105,6 @@ stdenv.mkDerivation (finalAttrs: { perl ] ++ lib.optionals buildPlatform.isDarwin [ autoconf269 automake gettext libtool ] ++ lib.optionals targetPlatform.isVc4 [ flex ] ; buildInputs = [ zlib gettext ] ++ lib.optionals hostPlatform.isDarwin [ CoreServices ]; Loading