2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2021-05-14 21:34:22 +00:00
|
|
|
, stdenv
|
2020-12-25 05:22:34 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2021-05-14 21:34:22 +00:00
|
|
|
, libiconv
|
2020-12-25 05:22:34 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "code-minimap";
|
2022-01-11 04:36:59 +00:00
|
|
|
version = "0.6.4";
|
2020-12-25 05:22:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wfxr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-01-11 04:36:59 +00:00
|
|
|
sha256 = "sha256-XhewfU3l/n2wiF9pKm1OOKQ7REzz3WzcBiVgOiYnAYU=";
|
2020-12-25 05:22:34 +00:00
|
|
|
};
|
|
|
|
|
2022-01-11 04:36:59 +00:00
|
|
|
cargoSha256 = "sha256-Z3bc0w8slI9lHbDbrIK65xurtmTK4Y4caF7kxxJBA3Q=";
|
2020-12-25 05:22:34 +00:00
|
|
|
|
2021-05-14 21:34:22 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|