codemov: init at unstable-2022-10-24
This commit is contained in:
parent
7f6a225a6a
commit
a8a9769146
3 changed files with 1745 additions and 0 deletions
1689
pkgs/tools/misc/codemov/Cargo.lock
generated
Normal file
1689
pkgs/tools/misc/codemov/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
54
pkgs/tools/misc/codemov/default.nix
Normal file
54
pkgs/tools/misc/codemov/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -6455,6 +6455,8 @@ with pkgs;
|
|||
|
||||
codebraid = callPackage ../tools/misc/codebraid { };
|
||||
|
||||
codemov = callPackage ../tools/misc/codemov { };
|
||||
|
||||
codevis = callPackage ../tools/misc/codevis { };
|
||||
|
||||
compass = callPackage ../development/tools/compass { };
|
||||
|
|
Loading…
Reference in a new issue