nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchurl }:
2
3let
4 rev = "e78c96e5288993aaea3ec44e5c6ee755c668da79";
5
6 # Don't use fetchgit as this is needed during Aarch64 bootstrapping
7 configGuess = fetchurl {
8 url = "https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=${rev}";
9 sha256 = "sha256-TSLpYIDGSp1flqCBi2Sgg9IWDV5bcO+Hn2Menv3R6KU=";
10 };
11 configSub = fetchurl {
12 url = "https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=${rev}";
13 sha256 = "sha256-DkCGDN/DE3phQ1GO/Ua5ZPPtp0Ya93PnW3yfSK8EV9s=";
14 };
15in stdenv.mkDerivation {
16 pname = "gnu-config";
17 version = "2020-05-04";
18
19 buildCommand = ''
20 mkdir -p $out
21 cp ${configGuess} $out/config.guess
22 cp ${configSub} $out/config.sub
23 '';
24
25 meta = with stdenv.lib; {
26 description = "Attempt to guess a canonical system name";
27 homepage = "https://savannah.gnu.org/projects/config";
28 license = licenses.gpl3;
29 # In addition to GPLv3:
30 # As a special exception to the GNU General Public License, if you
31 # distribute this file as part of a program that contains a
32 # configuration script generated by Autoconf, you may include it under
33 # the same distribution terms that you use for the rest of that
34 # program.
35 maintainers = [ maintainers.dezgeg ];
36 platforms = platforms.all;
37 };
38}