lol
at 22.05-pre 31 lines 835 B view raw
1{ lib, stdenv, fetchFromGitHub, bash, ocaml }: 2 3stdenv.mkDerivation { 4 pname = "rescript-editor-analysis"; 5 version = "1.1.3"; 6 7 src = fetchFromGitHub { 8 owner = "rescript-lang"; 9 repo = "rescript-vscode"; 10 rev = "8d0412a72307b220b7f5774e2612760a2d429059"; 11 sha256 = "rHQtfuIiEWlSPuZvNpEafsvlXCj2Uv1YRR1IfvKfC2s="; 12 }; 13 14 nativeBuildInputs = [ ocaml ]; 15 16 postPatch = '' 17 cd analysis 18 substituteInPlace Makefile --replace "/bin/bash" "${bash}/bin/bash" 19 ''; 20 21 installPhase = '' 22 install -D -m0555 rescript-editor-analysis.exe $out/bin/rescript-editor-analysis.exe 23 ''; 24 25 meta = with lib; { 26 description = "Analysis binary for the ReScript VSCode plugin"; 27 homepage = "https://github.com/rescript-lang/rescript-vscode"; 28 maintainers = with maintainers; [ dlip ]; 29 license = licenses.mit; 30 }; 31}