2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, mono5
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
pname = "omnisharp-roslyn";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "1.35.1";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v${version}/omnisharp-mono.tar.gz";
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "0gx87qc9r3lhqn6q95y74z67sjcxnazkkdi9zswmaqyvjn8x7vf4";
|
2020-04-24 23:36:52 +00: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";
|
2020-05-29 06:06:01 +00:00
|
|
|
homepage = "https://github.com/OmniSharp/omnisharp-roslyn";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tesq0 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|