depot/pkgs/by-name/vi/vidmerger/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00: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";
};
}