Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dm-media-converter: init at 2.5.5 #373921

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11976,6 +11976,11 @@
githubId = 464625;
name = "Enric Morales";
};
kilgarragh = {
github = "Kilgarragh";
githubId = 126100118;
name = "Kilgarragh";
};
kilianar = {
email = "[email protected]";
github = "kilianar";
Expand Down
55 changes: 55 additions & 0 deletions pkgs/applications/video/dm-media-converter/default.nix
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New packages go in pkgs/by-name.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this now correct?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also need to add numactl to the argument list at the start. Other than that it looks good.

Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
autoPatchelfHook,
fetchurl,
ffmpeg,
lib,
libqt5pas,
libX11,
qtbase,
stdenv,
wrapQtAppsHook,
}:

stdenv.mkDerivation rec {
pname = "dm-media-converter";
version = "2.5.5";

src = fetchurl {
url = "https://drive.usercontent.google.com/download?id=1xBg3mCfvl8TlB4CyacD8YQN0CvHcdn7I&export=download&confirm=t";
FliegendeWurst marked this conversation as resolved.
Show resolved Hide resolved
sha256 = "sha256-Jn/Zf5fKIzKjP7GoMuOFq4QlG29azcoEAT/qySAofLA=";
};

nativeBuildInputs = [
autoPatchelfHook
wrapQtAppsHook
];

buildInputs = [
libqt5pas
libX11
ffmpeg
qtbase
Kilgarragh marked this conversation as resolved.
Show resolved Hide resolved
];

sourceRoot = ".";

unpackCmd = "tar -xzf $src --strip-components=1";

installPhase = ''
runHook preInstall

mkdir -p $out/bin

mv dmMediaConverter bin --target-directory $out/bin

runHook postInstall
'';

meta = with lib; {
description = "Cross-platform FFmpeg GUI supporting many common encoding options";
homepage = "https://sites.google.com/site/dmsimpleapps";
license = licenses.unfreeRedistributable;
maintainers = with maintainers; [ kilgarragh ];
platforms = [ "x86_64-linux" ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3054,6 +3054,8 @@ with pkgs;

diffutils = callPackage ../tools/text/diffutils { };

dm-media-converter = libsForQt5.callPackage ../applications/video/dm-media-converter { };

dmd = callPackage ../by-name/dm/dmd/package.nix ({
inherit (darwin.apple_sdk.frameworks) Foundation;
} // lib.optionalAttrs stdenv.hostPlatform.isLinux {
Expand Down
Loading