mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
75 lines
1.5 KiB
Nix
75 lines
1.5 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, cmake
|
|
, alsaLib
|
|
, ffmpeg
|
|
, libass
|
|
, libcddb
|
|
, libcdio
|
|
, libgme
|
|
, libpulseaudio
|
|
, libsidplayfp
|
|
, libva
|
|
, libXv
|
|
, taglib
|
|
, qtbase
|
|
, qttools
|
|
, vulkan-headers
|
|
, vulkan-tools
|
|
, wrapQtAppsHook
|
|
}:
|
|
|
|
let
|
|
pname = "qmplay2";
|
|
version = "20.12.16";
|
|
in stdenv.mkDerivation {
|
|
inherit pname version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zaps166";
|
|
repo = "QMPlay2";
|
|
rev = version;
|
|
sha256 = "sha256-+XXlQI9MyENioYmzqbbZYQ6kaMATBjPrPaErR2Vqhus=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
|
|
buildInputs = [
|
|
alsaLib
|
|
ffmpeg
|
|
libass
|
|
libcddb
|
|
libcdio
|
|
libgme
|
|
libpulseaudio
|
|
libsidplayfp
|
|
libva
|
|
libXv
|
|
qtbase
|
|
qttools
|
|
taglib
|
|
vulkan-headers
|
|
vulkan-tools
|
|
];
|
|
|
|
postInstall = ''
|
|
# Because we think it is better to use only lowercase letters!
|
|
ln -s $out/bin/QMPlay2 $out/bin/qmplay2
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/zaps166/QMPlay2/";
|
|
description = "Qt-based Multimedia player";
|
|
longDescription = ''
|
|
QMPlay2 is a video and audio player. It can play all formats supported by
|
|
FFmpeg, libmodplug (including J2B and SFX). It also supports Audio CD, raw
|
|
files, Rayman 2 music and chiptunes. It contains YouTube and MyFreeMP3
|
|
browser.
|
|
'';
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|