mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
42 lines
835 B
Nix
42 lines
835 B
Nix
{ stdenv
|
|
, fetchurl
|
|
, mono5
|
|
, makeWrapper
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "omnisharp-roslyn";
|
|
version = "1.34.15";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v${version}/omnisharp-mono.tar.gz";
|
|
sha256 = "16wjp89lzg33cap99jv1vgqvdx0y0xvb892fpihwg62iafh10b8m";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
|
|
}
|