2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2016-03-04 11:46:38 +01:00
|
|
|
|
|
|
|
let
|
2021-02-09 08:17:56 +01:00
|
|
|
rev = "6faca61810d335c7837f320733fe8e15a1431fc2";
|
2016-03-04 11:46:38 +01:00
|
|
|
|
|
|
|
# Don't use fetchgit as this is needed during Aarch64 bootstrapping
|
|
|
|
configGuess = fetchurl {
|
2018-12-01 18:07:00 +01:00
|
|
|
url = "https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=${rev}";
|
2021-02-09 08:17:56 +01:00
|
|
|
sha256 = "06wkkhpbx9slmknr2g7mcd8x3zsdhnmmay25l31h3rkdp1wkq7kx";
|
2016-03-04 11:46:38 +01:00
|
|
|
};
|
|
|
|
configSub = fetchurl {
|
2018-12-01 18:07:00 +01:00
|
|
|
url = "https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=${rev}";
|
2021-02-09 08:17:56 +01:00
|
|
|
sha256 = "1qkph8cqanmgy3s4a18bm1a4vk62i8pf8cy5pc1hkpqwn4g6l0di";
|
2016-03-04 11:46:38 +01:00
|
|
|
};
|
2020-05-07 10:32:14 +02:00
|
|
|
in stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gnu-config";
|
2021-02-09 08:17:56 +01:00
|
|
|
version = "2021-01-25";
|
2016-03-04 11:46:38 +01:00
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cp ${configGuess} $out/config.guess
|
|
|
|
cp ${configSub} $out/config.sub
|
|
|
|
'';
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2016-03-04 11:46:38 +01:00
|
|
|
description = "Attempt to guess a canonical system name";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://savannah.gnu.org/projects/config";
|
2016-03-04 11:46:38 +01: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;
|
|
|
|
};
|
|
|
|
}
|