2016-03-04 10:46:38 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
let
|
2019-04-17 02:32:59 +01:00
|
|
|
rev = "a8d79c3130da83c7cacd6fee31b9acc53799c406";
|
2016-03-04 10:46:38 +00:00
|
|
|
|
|
|
|
# Don't use fetchgit as this is needed during Aarch64 bootstrapping
|
|
|
|
configGuess = fetchurl {
|
2018-12-01 17:07:00 +00:00
|
|
|
url = "https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=${rev}";
|
2019-04-17 02:32:59 +01:00
|
|
|
sha256 = "0qbq49gr2cmf4gzrjvrmpwxxgzl3vap1xm902xa8pkcqdvriq0qw";
|
2016-03-04 10:46:38 +00:00
|
|
|
};
|
|
|
|
configSub = fetchurl {
|
2018-12-01 17:07:00 +00:00
|
|
|
url = "https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=${rev}";
|
2019-04-17 02:32:59 +01:00
|
|
|
sha256 = "0i699axqfkxk9mgv1hlms5r44pf0s642yz75ajjjpwzhw4d5pnv4";
|
2016-03-04 10:46:38 +00:00
|
|
|
};
|
|
|
|
in
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gnu-config";
|
2019-04-17 02:32:59 +01:00
|
|
|
version = "2019-04-15";
|
2016-03-04 10:46:38 +00:00
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cp ${configGuess} $out/config.guess
|
|
|
|
cp ${configSub} $out/config.sub
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Attempt to guess a canonical system name";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://savannah.gnu.org/projects/config";
|
2016-03-04 10:46:38 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
# In addition to GPLv3:
|
|
|
|
# As a special exception to the GNU General Public License, if you
|
|
|
|
# distribute this file as part of a program that contains a
|
|
|
|
# configuration script generated by Autoconf, you may include it under
|
|
|
|
# the same distribution terms that you use for the rest of that
|
|
|
|
# program.
|
|
|
|
maintainers = [ maintainers.dezgeg ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|