nixpkgs-suyu/pkgs/development/tools/omnisharp-roslyn/default.nix

43 lines
896 B
Nix
Raw Normal View History

2019-04-11 23:45:02 +02:00
{ stdenv
, fetchurl
, mono5
, makeWrapper
}:
stdenv.mkDerivation rec {
pname = "omnisharp-roslyn";
2020-10-26 01:01:04 +01:00
version = "1.37.3";
2020-05-24 15:09:15 +02:00
2019-04-11 23:45:02 +02:00
src = fetchurl {
url = "https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v${version}/omnisharp-mono.tar.gz";
2020-10-26 01:01:04 +01:00
sha256 = "09h4yxswrpxw9w4wscarbv2gypk9bwwsmpqyjfp6b5bh1frx2i67";
2019-04-11 23:45:02 +02: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-24 15:09:15 +02:00
homepage = "https://github.com/OmniSharp/omnisharp-roslyn";
2019-04-11 23:45:02 +02:00
platforms = platforms.linux;
license = licenses.mit;
maintainers = with maintainers; [ tesq0 ];
};
}