nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 40 lines 857 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromSavannah, 5 m2libc, 6 which, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "mescc-tools"; 11 version = "1.5.1"; 12 13 src = fetchFromSavannah { 14 repo = "mescc-tools"; 15 rev = "Release_${finalAttrs.version}"; 16 hash = "sha256-jFDrmzsjKEQKOKlsch1ceWtzUhoJAJVyHjXGVhjE9/U="; 17 }; 18 19 # Don't use vendored M2libc 20 postPatch = '' 21 rmdir M2libc 22 ln -s ${m2libc}/include/M2libc M2libc 23 ''; 24 25 enableParallelBuilding = true; 26 27 doCheck = true; 28 checkTarget = "test"; 29 nativeCheckInputs = [ which ]; 30 31 installFlags = [ "PREFIX=$(out)" ]; 32 33 meta = with lib; { 34 description = "Collection of tools written for use in bootstrapping"; 35 homepage = "https://savannah.nongnu.org/projects/mescc-tools"; 36 license = licenses.gpl3Only; 37 teams = [ teams.minimal-bootstrap ]; 38 inherit (m2libc.meta) platforms; 39 }; 40})