depot/pkgs/applications/video/qctools/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

40 lines
1.2 KiB
Nix

{ lib, stdenv, fetchurl, qmake, wrapQtAppsHook, ffmpeg_6, qtmultimedia, qwt }:
stdenv.mkDerivation rec {
pname = "qctools";
version = "1.3.1";
src = fetchurl {
url = "https://mediaarea.net/download/source/${pname}/${version}/${pname}_${version}.tar.xz";
hash = "sha256-ClF8KiVjV2JTCjz/ueioojhiHZf8UW9WONaJrIx4Npo=";
};
sourceRoot = "${pname}/Project/QtCreator";
nativeBuildInputs = [ qmake wrapQtAppsHook ];
buildInputs = [ ffmpeg_6 qtmultimedia qwt ];
installPhase = ''
runHook preInstall
install -Dt $out/bin qctools-cli/qcli qctools-gui/QCTools
cd ../GNU/GUI
install -Dm644 qctools.desktop $out/share/applications/qctools.desktop
install -Dm644 qctools.metainfo.xml $out/share/metainfo/qctools.metainfo.xml
cd ../../../Source/Resource
install -Dm 0644 Logo.png $out/share/icons/hicolor/256x256/apps/qctools.png
install -Dm 0644 Logo.png $out/share/pixmaps/qctools.png
cd ../../Project/QtCreator
runHook postInstall
'';
meta = {
description = "Audiovisual analytics and filtering of video files";
homepage = "https://mediaarea.net/QCTools";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ orivej ];
platforms = lib.platforms.linux;
};
}