Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 39 lines 1.3 kB view raw
1{ stdenv, fetchurl }: 2 3let 4 rev = "b75cdc942a6172f63b34faf642b8c797239f6776"; 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 = "1bb8z1wzjs81p9qrvji4bc2a8zyxjinz90k8xq7sxxdp6zrmq1sv"; 10 }; 11 configSub = fetchurl { 12 url = "http://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=${rev}"; 13 sha256 = "00dn5i2cp4iqap5vr368r5ifrgcjfq5pr97i4dkkdbha1han5hsc"; 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}