Merge pull request #227095 from figsoda/codemov

This commit is contained in:
figsoda 2023-04-22 13:56:20 -04:00 committed by GitHub
commit ca7894b07e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1745 additions and 0 deletions

1689
pkgs/tools/misc/codemov/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,54 @@
{ lib
, rustPlatform
, fetchFromGitHub
, makeBinaryWrapper
, pkg-config
, oniguruma
, ffmpeg
, git
}:
rustPlatform.buildRustPackage {
pname = "codemov";
version = "unstable-2022-10-24";
src = fetchFromGitHub {
owner = "sloganking";
repo = "codemov";
rev = "d51e83246eafef32c3a3f54407fe49eb9801f5ea";
hash = "sha256-4Z3XASFlALCnX1guDqhBfvGNZ0V1XSruJvvSm0xr/t4=";
};
cargoLock = {
lockFile = ./Cargo.lock;
};
postPatch = ''
ln -s ${./Cargo.lock} Cargo.lock
'';
nativeBuildInputs = [
makeBinaryWrapper
pkg-config
];
buildInputs = [
oniguruma
];
env = {
RUSTONIG_SYSTEM_LIBONIG = true;
};
postInstall = ''
wrapProgram $out/bin/codemov \
--prefix PATH : ${lib.makeBinPath [ ffmpeg git ]}
'';
meta = with lib; {
description = "Create a video of how a git repository's code changes over time";
homepage = "https://github.com/sloganking/codemov";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}

View File

@ -6460,6 +6460,8 @@ with pkgs;
codebraid = callPackage ../tools/misc/codebraid { };
codemov = callPackage ../tools/misc/codemov { };
codevis = callPackage ../tools/misc/codevis { };
compass = callPackage ../development/tools/compass { };