nixpkgs/pkgs/tools/misc/code-minimap/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
713 B
Nix
Raw Normal View History

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, libiconv
}:
rustPlatform.buildRustPackage rec {
pname = "code-minimap";
2024-03-05 21:22:43 +01:00
version = "0.6.7";
src = fetchFromGitHub {
owner = "wfxr";
repo = pname;
rev = "v${version}";
2024-03-05 21:22:43 +01:00
sha256 = "sha256-d9qcSSiRv1I7NYuLrra5ShIUXT2HVeHGD0WPb+dnQCc=";
};
2024-03-05 21:22:43 +01:00
cargoHash = "sha256-5/UgEzkJw9XDgtS1jKyWh5ijTp3L+UQLuE5CXcyIgTs=";
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 ];
2023-11-27 02:17:53 +01:00
mainProgram = "code-minimap";
};
}