at 23.11-beta 29 lines 681 B view raw
1{ lib 2, stdenv 3, rustPlatform 4, fetchFromGitHub 5, libiconv 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "code-minimap"; 10 version = "0.6.4"; 11 12 src = fetchFromGitHub { 13 owner = "wfxr"; 14 repo = pname; 15 rev = "v${version}"; 16 sha256 = "sha256-XhewfU3l/n2wiF9pKm1OOKQ7REzz3WzcBiVgOiYnAYU="; 17 }; 18 19 cargoSha256 = "sha256-Z3bc0w8slI9lHbDbrIK65xurtmTK4Y4caF7kxxJBA3Q="; 20 21 buildInputs = lib.optional stdenv.isDarwin libiconv; 22 23 meta = with lib; { 24 description = "A high performance code minimap render"; 25 homepage = "https://github.com/wfxr/code-minimap"; 26 license = with licenses; [ asl20 /* or */ mit ]; 27 maintainers = with maintainers; [ bsima ]; 28 }; 29}