2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-12-25 05:22:34 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "code-minimap";
|
2021-02-06 09:33:52 +00:00
|
|
|
version = "0.5.0";
|
2020-12-25 05:22:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wfxr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-02-06 09:33:52 +00:00
|
|
|
sha256 = "sha256-t+zHAneINLd8JHkhaR+aF55gAWJmphYEqbx74CqAmM8=";
|
2020-12-25 05:22:34 +00:00
|
|
|
};
|
|
|
|
|
2021-02-06 09:33:52 +00:00
|
|
|
cargoSha256 = "sha256-eVh+6gTzKTelZ3MypkqYMXHr9QwaNG8H0xS82kilR/s=";
|
2020-12-25 05:22:34 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-12-25 05:22:34 +00:00
|
|
|
description = "A high performance code minimap render";
|
|
|
|
homepage = "https://github.com/wfxr/code-minimap";
|
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = with maintainers; [ bsima ];
|
|
|
|
};
|
|
|
|
}
|