2019-04-11 22:45:02 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, mono5
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "omnisharp-roslyn";
|
2019-06-02 10:56:01 +01:00
|
|
|
version = "1.32.19";
|
2019-04-11 22:45:02 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v${version}/omnisharp-mono.tar.gz";
|
2019-06-02 10:56:01 +01:00
|
|
|
sha256 = "0flmijar7ih9wp2i585035zhgwpqymr2y778x841bpgv412kxgpz";
|
2019-04-11 22:45:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
preUnpack = ''
|
|
|
|
mkdir src
|
|
|
|
cd src
|
|
|
|
sourceRoot=.
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cd ..
|
|
|
|
cp -r src $out/
|
|
|
|
ls -al $out/src
|
|
|
|
makeWrapper ${mono5}/bin/mono $out/bin/omnisharp \
|
|
|
|
--add-flags "$out/src/OmniSharp.exe"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "OmniSharp based on roslyn workspaces";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tesq0 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|