7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
30 lines
724 B
Nix
30 lines
724 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, libiconv
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "code-minimap";
|
|
version = "0.6.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wfxr";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-d9qcSSiRv1I7NYuLrra5ShIUXT2HVeHGD0WPb+dnQCc=";
|
|
};
|
|
|
|
cargoHash = "sha256-5/UgEzkJw9XDgtS1jKyWh5ijTp3L+UQLuE5CXcyIgTs=";
|
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
|
|
|
|
meta = with lib; {
|
|
description = "High performance code minimap render";
|
|
homepage = "https://github.com/wfxr/code-minimap";
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
maintainers = with maintainers; [ bsima ];
|
|
mainProgram = "code-minimap";
|
|
};
|
|
}
|