aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/video/mkclean/default.nix
blob: 36cd2206070c3288941fc32f7718316569cc28d7 (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
{ dos2unix, fetchurl, stdenv }:

stdenv.mkDerivation rec {
  pname = "mkclean";
  version = "0.8.10";

  hardeningDisable = [ "format" ];
  nativeBuildInputs = [ dos2unix ];

  src = fetchurl {
    url = "mirror://sourceforge/matroska/${pname}-${version}.tar.bz2";
    sha256 = "0zbpi4sm68zb20d53kbss93fv4aafhcmz7dsd0zdf01vj1r3wxwn";
  };

  configurePhase = ''
    dos2unix ./mkclean/configure.compiled
    ./mkclean/configure.compiled
  '';

  buildPhase = ''
    make -C mkclean
  '';

  installPhase = ''
    mkdir -p $out/{bin,lib}
    mv release/gcc_linux_*/*.* $out/lib
    mv release/gcc_linux_*/* $out/bin
  '';

  meta = with stdenv.lib; {
    description = "Command line tool to clean and optimize Matroska (.mkv / .mka / .mks / .mk3d) and WebM (.webm / .weba) files that have already been muxed";
    homepage = "https://www.matroska.org";
    license = licenses.bsdOriginal;
    maintainers = with maintainers; [ chrisaw ];
    platforms = [ "i686-linux" "x86_64-linux" ];
  };
}