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