nixpkgs-suyu/pkgs/tools/misc/code-minimap/default.nix
2021-05-17 13:45:14 -07:00

29 lines
681 B
Nix

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, libiconv
}:
rustPlatform.buildRustPackage rec {
pname = "code-minimap";
version = "0.6.0";
src = fetchFromGitHub {
owner = "wfxr";
repo = pname;
rev = "v${version}";
sha256 = "sha256-nWfvRrKkUrr2owv9sLgORVPYp68/Ibdu/P1VddMb61s=";
};
cargoSha256 = "sha256-OmWn6Z/r/gXMD4gp/TDo0Hokliq8Qgb354q8ZFpVG2s=";
buildInputs = lib.optional stdenv.isDarwin libiconv;
meta = with lib; {
description = "A high performance code minimap render";
homepage = "https://github.com/wfxr/code-minimap";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ bsima ];
};
}