nix: fix and update binutils-or1k

This commit is contained in:
Sebastien Bourdeauducq 2018-08-16 10:05:07 +08:00
parent 57bd3e4109
commit ac9dcb7497
1 changed files with 8 additions and 6 deletions

View File

@ -1,18 +1,21 @@
{ stdenv { stdenv, buildPackages
, fetchurl , fetchurl, zlib
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
basename = "binutils"; basename = "binutils";
platform = "or1k"; platform = "or1k";
version = "2.26"; version = "2.30";
name = "${basename}_${platform}-${version}"; name = "${basename}_${platform}-${version}";
src = fetchurl { src = fetchurl {
url = "https://ftp.gnu.org/gnu/binutils/${basename}-${version}.tar.bz2"; url = "https://ftp.gnu.org/gnu/binutils/binutils-${version}.tar.bz2";
sha256 = "1ngc2h3knhiw8s22l8y6afycfaxr5grviqy7mwvm4bsl14cf9b62"; sha256 = "028cklfqaab24glva1ks2aqa1zxa6w6xmc8q34zs1sb7h22dxspg";
}; };
configureFlags = configureFlags =
[ "--enable-shared" "--enable-deterministic-archives" "--target=or1k-linux"]; [ "--enable-shared" "--enable-deterministic-archives" "--target=or1k-linux"];
outputs = [ "out" "info" "man" ];
depsBuildBuild = [ buildPackages.stdenv.cc ];
buildInputs = [ zlib ];
enableParallelBuilding = true; enableParallelBuilding = true;
meta = { meta = {
description = "Tools for manipulating binaries (linker, assembler, etc.)"; description = "Tools for manipulating binaries (linker, assembler, etc.)";
@ -29,4 +32,3 @@ stdenv.mkDerivation rec {
priority = "10"; priority = "10";
}; };
} }