diff options
author | Daniel Peebles <copumpkin@users.noreply.github.com> | 2017-10-24 19:10:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-24 19:10:03 -0400 |
commit | 4bf221932e568f0c1ede77f60f6bc2a7786ed3e1 (patch) | |
tree | f5f0354c073b33a1982b96a46fb11297c78e6b16 /pkgs/development/compilers | |
parent | d7097f701533887891b7869e7cf9ec1ff4d887aa (diff) | |
parent | 6b1b8487df4cf740441dfb652bc13e0e9f4757e3 (diff) | |
download | nixlib-4bf221932e568f0c1ede77f60f6bc2a7786ed3e1.tar nixlib-4bf221932e568f0c1ede77f60f6bc2a7786ed3e1.tar.gz nixlib-4bf221932e568f0c1ede77f60f6bc2a7786ed3e1.tar.bz2 nixlib-4bf221932e568f0c1ede77f60f6bc2a7786ed3e1.tar.lz nixlib-4bf221932e568f0c1ede77f60f6bc2a7786ed3e1.tar.xz nixlib-4bf221932e568f0c1ede77f60f6bc2a7786ed3e1.tar.zst nixlib-4bf221932e568f0c1ede77f60f6bc2a7786ed3e1.zip |
Merge pull request #30750 from kuznero/pr/dotnet-sdk
dotnet-sdk: init at 2.0.3
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/dotnet/sdk/default.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/development/compilers/dotnet/sdk/default.nix b/pkgs/development/compilers/dotnet/sdk/default.nix new file mode 100644 index 000000000000..e7cb7495c90e --- /dev/null +++ b/pkgs/development/compilers/dotnet/sdk/default.nix @@ -0,0 +1,53 @@ +{ stdenv +, fetchurl +, libunwind +, openssl +, icu +, libuuid +, zlib +, curl +, patchelf +}: + +let + rpath = stdenv.lib.makeLibraryPath [ stdenv.cc.cc libunwind libuuid icu openssl zlib curl ]; +in + stdenv.mkDerivation rec { + version = "2.0.3"; + name = "dotnet-sdk-${version}"; + + src = fetchurl { + url = "https://dotnetcli.azureedge.net/dotnet/Sdk/2.0.3-servicing-007037/dotnet-sdk-2.0.3-servicing-007037-linux-x64.tar.gz"; + sha256 = "0kqk1f0vfdfyb9mp7d4y83airkxyixmxb7lrx0h0hym2a9661ch8"; + }; + + unpackPhase = "tar xvzf $src"; + + buildPhase = '' + runHook preBuild + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" ./dotnet + patchelf --set-rpath "${rpath}" ./dotnet + find -type f -name "*.so" -exec patchelf --set-rpath "${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 2.0.2 with .NET Core 2.0.0"; + platforms = [ "x86_64-linux" ]; + maintainers = with maintainers; [ kuznero ]; + license = licenses.mit; + }; + } |