blob: 3f9eff20203153b5ee5f77e5128b82a13ad88429 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
libiconv,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "code-minimap";
version = "0.6.8";
src = fetchFromGitHub {
owner = "wfxr";
repo = "code-minimap";
rev = "v${finalAttrs.version}";
sha256 = "sha256-unf7gFc/tQiUw3VqQ0KC96Srxn1E27WsmJviSggaCF4=";
};
cargoHash = "sha256-35qMpxROBnXfnTIAkCRUg7zRQTvSIIA2qGD0Vu9r488=";
buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
meta = {
description = "High performance code minimap render";
homepage = "https://github.com/wfxr/code-minimap";
license = with lib.licenses; [
asl20 # or
mit
];
maintainers = with lib.maintainers; [ bsima ];
mainProgram = "code-minimap";
};
})
|