about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/vi/vidmerger/package.nix
blob: 7cdfaf2944d8e87d7c2e218540de2a2b7247ffcf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ 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";
  };
}