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
715 B
Nix
Raw Normal View History

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, libiconv
}:
rustPlatform.buildRustPackage rec {
pname = "code-minimap";
2022-01-11 04:36:59 +00:00
version = "0.6.4";
src = fetchFromGitHub {
owner = "wfxr";
repo = pname;
rev = "v${version}";
2022-01-11 04:36:59 +00:00
sha256 = "sha256-XhewfU3l/n2wiF9pKm1OOKQ7REzz3WzcBiVgOiYnAYU=";
};
2022-01-11 04:36:59 +00:00
cargoSha256 = "sha256-Z3bc0w8slI9lHbDbrIK65xurtmTK4Y4caF7kxxJBA3Q=";
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 01:17:53 +00:00
mainProgram = "code-minimap";
};
}