depot/third_party/nixpkgs/pkgs/by-name/vi/vidmerger/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

40 lines
864 B
Nix

{ lib
, ffmpeg
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "vidmerger";
version = "0.3.2";
src = fetchFromGitHub {
owner = "TGotwig";
repo = "vidmerger";
rev = version;
hash = "sha256-E3Y1UaYXl6NdCMM7IepqFzWNuHaMGLCN5BvQ/lxjFoc=";
};
cargoLock = {
lockFile = ./Cargo.lock;
};
postPatch = ''
cp ${./Cargo.lock} Cargo.lock
'';
# Running cargo test -- . fails because it expects to have two mp4 files so that it can test the video merging functionalities
doCheck = false;
buildInputs = [
ffmpeg
];
meta = with lib; {
description = "Merge video & audio files via CLI";
homepage = "https://github.com/TGotwig/vidmerger";
license = with licenses; [ mit commons-clause ];
maintainers = with maintainers; [ ByteSudoer ];
mainProgram = "vidmerger";
};
}