mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
Merge pull request #227095 from figsoda/codemov
This commit is contained in:
commit
ca7894b07e
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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user