3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/omnisharp-roslyn/default.nix
R. RyanTM 27b133e8b6 omnisharp-roslyn: 1.32.8 -> 1.32.19
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/omnisharp-roslyn/versions
2019-06-23 14:54:55 +02:00

42 lines
845 B
Nix

{ stdenv
, fetchurl
, mono5
, makeWrapper
}:
stdenv.mkDerivation rec {
name = "omnisharp-roslyn-${version}";
version = "1.32.19";
src = fetchurl {
url = "https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v${version}/omnisharp-mono.tar.gz";
sha256 = "0flmijar7ih9wp2i585035zhgwpqymr2y778x841bpgv412kxgpz";
};
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 ];
};
}