0bc362c485
Without this attempt to run debugger fails with "Unknown error 0x80131c3c". Underlying problem is that libmscordbi.so cannot find libmscordaccore.so.
54 lines
1.4 KiB
Nix
54 lines
1.4 KiB
Nix
{ stdenv
|
|
, fetchurl
|
|
, libunwind
|
|
, openssl
|
|
, icu
|
|
, libuuid
|
|
, zlib
|
|
, curl
|
|
}:
|
|
|
|
let
|
|
rpath = stdenv.lib.makeLibraryPath [ stdenv.cc.cc libunwind libuuid icu openssl zlib curl ];
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
version = "2.2.203";
|
|
netCoreVersion = "2.2.4";
|
|
pname = "dotnet-sdk";
|
|
|
|
src = fetchurl {
|
|
url = "https://dotnetcli.azureedge.net/dotnet/Sdk/${version}/${pname}-${version}-linux-x64.tar.gz";
|
|
# use sha512 from the download page
|
|
sha512 = "8DA955FA0AEEBB6513A6E8C4C23472286ED78BD5533AF37D79A4F2C42060E736FDA5FD48B61BF5AEC10BBA96EB2610FACC0F8A458823D374E1D437B26BA61A5C";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
patchelf --set-interpreter "${stdenv.cc.bintools.dynamicLinker}" ./dotnet
|
|
patchelf --set-rpath "${rpath}" ./dotnet
|
|
find -type f -name "*.so" -exec patchelf --set-rpath '$ORIGIN:${rpath}' {} \;
|
|
echo -n "dotnet-sdk version: "
|
|
./dotnet --version
|
|
runHook postBuild
|
|
'';
|
|
|
|
dontPatchELF = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin
|
|
cp -r ./ $out
|
|
ln -s $out/dotnet $out/bin/dotnet
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://dotnet.github.io/;
|
|
description = ".NET Core SDK ${version} with .NET Core ${netCoreVersion}";
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = with maintainers; [ kuznero ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|