summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/mp/mp4fpsmod/package.nix
blob: c3b850a942481f71d108677f629fc1b3c6b25995 (plain)
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
41
42
43
44
45
46
{
  lib,
  stdenv,
  fetchFromGitHub,
  autoreconfHook,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "mp4fpsmod";
  version = "0.27-unstable-2023-12-30";

  src = fetchFromGitHub {
    owner = "nu774";
    repo = "mp4fpsmod";
    rev = "e2dd065012f4d2c7e42d4acdefee2ffdc50d3d86";
    hash = "sha256-54pkjlvLLi4pLlQA/l+v4Mx5HlloR6GiB2GP71A0x/g=";
  };

  nativeBuildInputs = [ autoreconfHook ];

  enableParallelBuilding = true;

  preConfigure = ''
    ./bootstrap.sh
  '';

  meta = {
    description = "Tiny mp4 time code editor";
    longDescription = ''
      Tiny mp4 time code editor. You can use this for changing fps,
      delaying audio tracks, executing DTS compression, extracting
      time codes of mp4.
    '';
    inherit (finalAttrs.src.meta) homepage;
    license = with lib.licenses; [
      # All files are distributed as Public Domain, except for the followings:
      publicDomain
      mpl11 # mp4v2
      boost # Boost
      bsd2 # FreeBSD CVS
    ];
    platforms = lib.platforms.unix;
    maintainers = with lib.maintainers; [ huggy ];
    mainProgram = "mp4fpsmod";
  };
})