3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/omnisharp-roslyn/default.nix

42 lines
835 B
Nix
Raw Normal View History

2019-04-11 22:45:02 +01:00
{ stdenv
, fetchurl
, mono5
, makeWrapper
}:
stdenv.mkDerivation rec {
pname = "omnisharp-roslyn";
2020-02-07 15:49:38 +00:00
version = "1.34.11";
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";
2020-02-07 15:49:38 +00:00
sha256 = "0j55jrji7ya0pm91hfmyd9s6lkl35xbybr81a1gka90mlyp0gx63";
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 ];
};
}