summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorVasiliy Solovey <miltador@yandex.ua>2017-04-01 11:48:52 +0300
committerVasiliy Solovey <miltador@yandex.ua>2017-04-01 11:48:52 +0300
commitf8832fb2771791cb27703aa9ef33b5c4e471bf61 (patch)
tree76613598925e6e2aa9683f87001aacd23bf1ee1b /pkgs
parent3aaf146f0746e10f94f3151cdaa0932f1fbf3495 (diff)
downloadnixpkgs-f8832fb2771791cb27703aa9ef33b5c4e471bf61.tar
nixpkgs-f8832fb2771791cb27703aa9ef33b5c4e471bf61.tar.gz
nixpkgs-f8832fb2771791cb27703aa9ef33b5c4e471bf61.tar.bz2
nixpkgs-f8832fb2771791cb27703aa9ef33b5c4e471bf61.tar.lz
nixpkgs-f8832fb2771791cb27703aa9ef33b5c4e471bf61.tar.xz
nixpkgs-f8832fb2771791cb27703aa9ef33b5c4e471bf61.tar.zst
nixpkgs-f8832fb2771791cb27703aa9ef33b5c4e471bf61.zip
rider: init at 171.3655.1246
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/editors/jetbrains/common.nix4
-rw-r--r--pkgs/applications/editors/jetbrains/default.nix40
2 files changed, 43 insertions, 1 deletions
diff --git a/pkgs/applications/editors/jetbrains/common.nix b/pkgs/applications/editors/jetbrains/common.nix
index 839f537843d..a7ac367f048 100644
--- a/pkgs/applications/editors/jetbrains/common.nix
+++ b/pkgs/applications/editors/jetbrains/common.nix
@@ -63,6 +63,10 @@ with stdenv; lib.makeOverridable mkDerivation rec {
 
     makeWrapper "$out/$name/bin/${loName}.sh" "$out/bin/${execName}" \
       --prefix PATH : "$out/libexec/${name}:${stdenv.lib.makeBinPath [ jdk coreutils gnugrep which git ]}" \
+      --prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [
+        # Some internals want libstdc++.so.6
+        stdenv.cc.cc.lib
+      ]}" \
       --set JDK_HOME "$jdk" \
       --set ${hiName}_JDK "$jdk" \
       --set ANDROID_JAVA_HOME "$jdk" \
diff --git a/pkgs/applications/editors/jetbrains/default.nix b/pkgs/applications/editors/jetbrains/default.nix
index c2bc9d8e170..f91aa6b2cdd 100644
--- a/pkgs/applications/editors/jetbrains/default.nix
+++ b/pkgs/applications/editors/jetbrains/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, callPackage, fetchurl, makeDesktopItem, makeWrapper, patchelf
+{ lib, stdenv, callPackage, fetchurl, makeDesktopItem, makeWrapper, patchelf
 , coreutils, gnugrep, which, git, python, unzip, p7zip
 , androidsdk, jdk
 }:
@@ -104,6 +104,32 @@ let
       propagatedUserEnvPkgs = [ python ];
     };
 
+  buildRider = { name, version, src, license, description, wmClass }:
+    lib.overrideDerivation (mkJetBrainsProduct rec {
+      inherit name version src wmClass jdk;
+      product = "Rider";
+      meta = with stdenv.lib; {
+        homepage = "https://www.jetbrains.com/rider/";
+        inherit description license;
+        longDescription = ''
+          JetBrains Rider is a new .NET IDE based on the IntelliJ
+          platform and ReSharper. Rider supports .NET Core,
+          .NET Framework and Mono based projects. This lets you
+          develop a wide array of applications including .NET desktop
+          apps, services and libraries, Unity games, ASP.NET and 
+          ASP.NET Core web applications.
+        '';
+        maintainers = [ maintainers.miltador ];
+        platforms = platforms.linux;
+      };
+    }) (attrs: {
+      patchPhase = attrs.patchPhase + ''
+        # Patch built-in mono for ReSharperHost to start successfully
+        interpreter=$(echo ${stdenv.glibc.out}/lib/ld-linux*.so.2)
+        patchelf --set-interpreter "$interpreter" lib/ReSharperHost/linux-x64/mono/bin/mono-sgen
+      '';
+    });
+
   buildRubyMine = { name, version, src, license, description, wmClass }:
     (mkJetBrainsProduct rec {
       inherit name version src wmClass jdk;
@@ -271,6 +297,18 @@ in
     wmClass = "jetbrains-pycharm";
   };
 
+  rider = buildRider rec {
+    name = "rider-${version}";
+    version = "171.3655.1246";
+    description = "A cross-platform .NET IDE based on the IntelliJ platform and ReSharper";
+    license = stdenv.lib.licenses.unfree;
+    src = fetchurl {
+      url = "https://download.jetbrains.com/resharper/riderRS-${version}.tar.gz";
+      sha256 = "90f9f8f1919e0f1dad42387f1a308483448323b089c13c409f3dd4d52992266b";
+    };
+    wmClass = "jetbrains-rider";
+  };
+
   ruby-mine = buildRubyMine rec {
     name = "ruby-mine-${version}";
     version = "2016.3.2";