Merge pull request #57205 from tesq0/pull-request-omnisharp
omnisharp-roslyn: init at 1.32.8
This commit is contained in:
commit
357df763a8
41
pkgs/development/tools/omnisharp-roslyn/default.nix
Normal file
41
pkgs/development/tools/omnisharp-roslyn/default.nix
Normal file
@ -0,0 +1,41 @@
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, mono5
|
||||
, makeWrapper
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
name = "omnisharp-roslyn-${version}";
|
||||
version = "1.32.8";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v${version}/omnisharp-mono.tar.gz";
|
||||
sha256 = "0k2a4awmzb7ppll2skyzaa94n3hxqm35ffibl0sygldk3symzwgp";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
|
||||
}
|
@ -23856,6 +23856,8 @@ in
|
||||
newlib = callPackage ../development/misc/newlib { };
|
||||
newlibCross = callPackage ../development/misc/newlib {
|
||||
stdenv = crossLibcStdenv;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
omnisharp-roslyn = callPackage ../development/tools/omnisharp-roslyn { };
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user