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-12-06 11:01:19 +01:00
|
|
|
version = "0.6.2";
|
2020-12-25 06:22:34 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wfxr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-12-06 11:01:19 +01:00
|
|
|
sha256 = "sha256-nUEmlKqCskPEQCOS2NC6jF4yVDarJeb3p+BKZq/2qvw=";
|
2020-12-25 06:22:34 +01:00
|
|
|
};
|
|
|
|
|
2021-12-06 11:01:19 +01:00
|
|
|
cargoSha256 = "sha256-yjjoQYYWK9/9fOP5ICnhpuF/07SyCszB9GCDr0GJ0v0=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|