depot/third_party/nixpkgs/pkgs/development/compilers/dotnet/dotnet.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

50 lines
1 KiB
Nix

{
stdenvNoCC,
callPackage,
lib,
fetchurl,
releaseManifestFile,
releaseInfoFile,
allowPrerelease ? false,
depsFile,
bootstrapSdk,
pkgsBuildHost,
}:
let
inherit (lib.importJSON releaseInfoFile) tarballHash artifactsUrl artifactsHash;
pkgs = callPackage ./stage1.nix {
inherit releaseManifestFile tarballHash depsFile;
bootstrapSdk = bootstrapSdk.overrideAttrs (old: {
passthru = old.passthru or { } // {
artifacts = stdenvNoCC.mkDerivation rec {
name = lib.nameFromURL artifactsUrl ".tar.gz";
src = fetchurl {
url = artifactsUrl;
hash = artifactsHash;
};
sourceRoot = ".";
installPhase = ''
mkdir -p $out
cp -r * $out/
'';
};
};
});
};
in
pkgs
// {
vmr = pkgs.vmr.overrideAttrs (old: {
passthru = old.passthru // {
updateScript = pkgsBuildHost.callPackage ./update.nix {
inherit releaseManifestFile releaseInfoFile allowPrerelease;
};
};
});
}