Skip to content

Commit

Permalink
dm-media-converter: init at 2.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilgarragh committed Jan 15, 2025
1 parent e284359 commit 1319361
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
59 changes: 59 additions & 0 deletions pkgs/applications/video/dm-media-converter/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
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";
sha256 = "sha256-Jn/Zf5fKIzKjP7GoMuOFq4QlG29azcoEAT/qySAofLA=";
};

nativeBuildInputs = [
autoPatchelfHook
wrapQtAppsHook
];

buildInputs = [
libqt5pas
libX11
ffmpeg
qtbase
];

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 frontend (GUI) exposing some of its features.";
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

0 comments on commit 1319361

Please sign in to comment.