2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, mono5
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
pname = "omnisharp-roslyn";
|
2020-11-30 08:33:03 +00:00
|
|
|
version = "1.37.4";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
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-11-30 08:33:03 +00:00
|
|
|
sha256 = "0pknphydf194n7rjyax4mh8n7j8679j0jflw63gfgh37daxry0r2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
preUnpack = ''
|
|
|
|
mkdir src
|
|
|
|
cd src
|
|
|
|
sourceRoot=.
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cd ..
|
2020-11-30 08:33:03 +00:00
|
|
|
cp -r src $out/
|
2020-04-24 23:36:52 +00:00
|
|
|
ls -al $out/src
|
|
|
|
makeWrapper ${mono5}/bin/mono $out/bin/omnisharp \
|
|
|
|
--add-flags "$out/src/OmniSharp.exe"
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|