1{ lib
2, stdenv
3, rustPlatform
4, fetchFromGitHub
5, libiconv
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "code-minimap";
10 version = "0.6.1";
11
12 src = fetchFromGitHub {
13 owner = "wfxr";
14 repo = pname;
15 rev = "v${version}";
16 sha256 = "sha256-eCHmMtndcQJqKmjxhkcLvjMUXApkSnH+7qyG7PDfcwo=";
17 };
18
19 cargoSha256 = "sha256-wKCANWznOJMlQ8T2q39NNNRmgPYMpbkJhXpxojusNsE=";
20
21 buildInputs = lib.optional stdenv.isDarwin libiconv;
22
23 meta = with lib; {
24 description = "A high performance code minimap render";
25 homepage = "https://github.com/wfxr/code-minimap";
26 license = with licenses; [ asl20 /* or */ mit ];
27 maintainers = with maintainers; [ bsima ];
28 };
29}