2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2021-05-20 23:08:51 +00:00
|
|
|
, stdenv
|
2020-12-26 04:20:00 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2021-05-20 23:08:51 +00:00
|
|
|
, libiconv
|
2020-12-26 04:20:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "code-minimap";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "0.6.4";
|
2020-12-26 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wfxr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "sha256-XhewfU3l/n2wiF9pKm1OOKQ7REzz3WzcBiVgOiYnAYU=";
|
2020-12-26 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
cargoSha256 = "sha256-Z3bc0w8slI9lHbDbrIK65xurtmTK4Y4caF7kxxJBA3Q=";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
2020-12-26 04:20:00 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-26 04:20:00 +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 ];
|
|
|
|
};
|
|
|
|
}
|