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-07-21 11:38:57 +02:00
|
|
|
version = "0.6.1";
|
2020-12-25 06:22:34 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wfxr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-07-21 11:38:57 +02:00
|
|
|
sha256 = "sha256-eCHmMtndcQJqKmjxhkcLvjMUXApkSnH+7qyG7PDfcwo=";
|
2020-12-25 06:22:34 +01:00
|
|
|
};
|
|
|
|
|
2021-07-21 11:38:57 +02:00
|
|
|
cargoSha256 = "sha256-wKCANWznOJMlQ8T2q39NNNRmgPYMpbkJhXpxojusNsE=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|