at 23.11-beta 48 lines 982 B view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, makeBinaryWrapper 5, pkg-config 6, oniguruma 7, ffmpeg 8, git 9}: 10 11rustPlatform.buildRustPackage { 12 pname = "codemov"; 13 version = "unstable-2023-08-08"; 14 15 src = fetchFromGitHub { 16 owner = "sloganking"; 17 repo = "codemov"; 18 rev = "8a4d6e50c21010866ca06f845f30c2aa54c09854"; 19 hash = "sha256-nOqh8kXS5mx0AM4NvIcwvC0lAZRHsQwrxI0c+9PeroU="; 20 }; 21 22 cargoHash = "sha256-cyzoMD97ofrbm3BDAtl8pSezcM4B2TVbW9V5J6xRVLc="; 23 24 nativeBuildInputs = [ 25 makeBinaryWrapper 26 pkg-config 27 ]; 28 29 buildInputs = [ 30 oniguruma 31 ]; 32 33 env = { 34 RUSTONIG_SYSTEM_LIBONIG = true; 35 }; 36 37 postInstall = '' 38 wrapProgram $out/bin/codemov \ 39 --prefix PATH : ${lib.makeBinPath [ ffmpeg git ]} 40 ''; 41 42 meta = with lib; { 43 description = "Create a video of how a git repository's code changes over time"; 44 homepage = "https://github.com/sloganking/codemov"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ figsoda ]; 47 }; 48}