rust-analyzer-unwrapped: format
This commit is contained in:
parent
fe71382882
commit
17e3fab2ff
@ -1,14 +1,15 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, callPackage
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, CoreServices
|
||||
, cmake
|
||||
, libiconv
|
||||
, useMimalloc ? false
|
||||
, doCheck ? true
|
||||
, nix-update-script
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
callPackage,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
CoreServices,
|
||||
cmake,
|
||||
libiconv,
|
||||
useMimalloc ? false,
|
||||
doCheck ? true,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
@ -23,8 +24,18 @@ rustPlatform.buildRustPackage rec {
|
||||
hash = "sha256-5gBDDKKwiMzR7W/b4PROLeNiXbB4ux1YDDLebaFzrmM=";
|
||||
};
|
||||
|
||||
cargoBuildFlags = [ "--bin" "rust-analyzer" "--bin" "rust-analyzer-proc-macro-srv" ];
|
||||
cargoTestFlags = [ "--package" "rust-analyzer" "--package" "proc-macro-srv-cli" ];
|
||||
cargoBuildFlags = [
|
||||
"--bin"
|
||||
"rust-analyzer"
|
||||
"--bin"
|
||||
"rust-analyzer-proc-macro-srv"
|
||||
];
|
||||
cargoTestFlags = [
|
||||
"--package"
|
||||
"rust-analyzer"
|
||||
"--package"
|
||||
"proc-macro-srv-cli"
|
||||
];
|
||||
|
||||
# Code format check requires more dependencies but don't really matter for packaging.
|
||||
# So just ignore it.
|
||||
@ -64,7 +75,10 @@ rustPlatform.buildRustPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Modular compiler frontend for the Rust language";
|
||||
homepage = "https://rust-analyzer.github.io";
|
||||
license = with licenses; [ mit asl20 ];
|
||||
license = with licenses; [
|
||||
mit
|
||||
asl20
|
||||
];
|
||||
maintainers = with maintainers; [ oxalica ];
|
||||
mainProgram = "rust-analyzer";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user