2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2020-12-25 06:22:34 +01:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "code-minimap";
|
2021-02-06 10:33:52 +01:00
|
|
|
version = "0.5.0";
|
2020-12-25 06:22:34 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wfxr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-02-06 10:33:52 +01:00
|
|
|
sha256 = "sha256-t+zHAneINLd8JHkhaR+aF55gAWJmphYEqbx74CqAmM8=";
|
2020-12-25 06:22:34 +01:00
|
|
|
};
|
|
|
|
|
2021-02-06 10:33:52 +01:00
|
|
|
cargoSha256 = "sha256-eVh+6gTzKTelZ3MypkqYMXHr9QwaNG8H0xS82kilR/s=";
|
2020-12-25 06:22:34 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-12-25 06:22:34 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|