2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2021-05-14 23:34:22 +02:00
|
|
|
, stdenv
|
2020-12-25 06:22:34 +01:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2021-05-14 23:34:22 +02:00
|
|
|
, libiconv
|
2020-12-25 06:22:34 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "code-minimap";
|
2021-05-09 04:28:01 +02:00
|
|
|
version = "0.6.0";
|
2020-12-25 06:22:34 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wfxr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-05-09 04:28:01 +02:00
|
|
|
sha256 = "sha256-nWfvRrKkUrr2owv9sLgORVPYp68/Ibdu/P1VddMb61s=";
|
2020-12-25 06:22:34 +01:00
|
|
|
};
|
|
|
|
|
2021-05-09 04:28:01 +02:00
|
|
|
cargoSha256 = "sha256-OmWn6Z/r/gXMD4gp/TDo0Hokliq8Qgb354q8ZFpVG2s=";
|
2020-12-25 06:22:34 +01:00
|
|
|
|
2021-05-14 23:34:22 +02:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|