Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 56 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 qmake, 6 wrapQtAppsHook, 7 ffmpeg_6, 8 qtmultimedia, 9 qwt, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "qctools"; 14 version = "1.4"; 15 16 src = fetchurl { 17 url = "https://mediaarea.net/download/source/${pname}/${version}/${pname}_${version}.tar.xz"; 18 hash = "sha256-1WqCP/4PV8hQT8ubPxHGTwZrRnOPm+msEPBGR4gkWhA="; 19 }; 20 21 sourceRoot = "${pname}/Project/QtCreator"; 22 23 nativeBuildInputs = [ 24 qmake 25 wrapQtAppsHook 26 ]; 27 28 buildInputs = [ 29 ffmpeg_6 30 qtmultimedia 31 qwt 32 ]; 33 34 installPhase = '' 35 runHook preInstall 36 37 install -Dt $out/bin qctools-cli/qcli qctools-gui/QCTools 38 cd ../GNU/GUI 39 install -Dm644 qctools.desktop $out/share/applications/qctools.desktop 40 install -Dm644 qctools.metainfo.xml $out/share/metainfo/qctools.metainfo.xml 41 cd ../../../Source/Resource 42 install -Dm 0644 Logo.png $out/share/icons/hicolor/256x256/apps/qctools.png 43 install -Dm 0644 Logo.png $out/share/pixmaps/qctools.png 44 cd ../../Project/QtCreator 45 46 runHook postInstall 47 ''; 48 49 meta = { 50 description = "Audiovisual analytics and filtering of video files"; 51 homepage = "https://mediaarea.net/QCTools"; 52 license = lib.licenses.gpl3Only; 53 maintainers = with lib.maintainers; [ orivej ]; 54 platforms = lib.platforms.linux; 55 }; 56}