mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
qmplay2: nixfmt-rfc-style
(Can someone explain what happened with buildInputs??)
This commit is contained in:
parent
644bdba6d0
commit
fb86fc7d25
|
@ -30,7 +30,10 @@
|
|||
let
|
||||
sources = callPackage ./sources.nix { };
|
||||
in
|
||||
assert lib.elem qtVersion [ "5" "6" ];
|
||||
assert lib.elem qtVersion [
|
||||
"5"
|
||||
"6"
|
||||
];
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = sources.qmplay2.pname + "-qt" + qtVersion;
|
||||
inherit (sources.qmplay2) version src;
|
||||
|
@ -42,19 +45,17 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
popd
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
nativeBuildInputs =
|
||||
[
|
||||
cmake
|
||||
ninja
|
||||
pkg-config
|
||||
]
|
||||
++ lib.optionals (qtVersion == "6") [
|
||||
qt6.wrapQtAppsHook
|
||||
]
|
||||
++ lib.optionals (qtVersion == "5") [
|
||||
qt5.wrapQtAppsHook
|
||||
];
|
||||
++ lib.optionals (qtVersion == "6") [ qt6.wrapQtAppsHook ]
|
||||
++ lib.optionals (qtVersion == "5") [ qt5.wrapQtAppsHook ];
|
||||
|
||||
buildInputs = [
|
||||
buildInputs =
|
||||
[
|
||||
alsa-lib
|
||||
ffmpeg
|
||||
fribidi
|
||||
|
@ -106,7 +107,10 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
'';
|
||||
license = lib.licenses.lgpl3Plus;
|
||||
mainProgram = "qmplay2";
|
||||
maintainers = with lib.maintainers; [ AndersonTorres kashw2 ];
|
||||
maintainers = with lib.maintainers; [
|
||||
AndersonTorres
|
||||
kashw2
|
||||
];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
})
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
{
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
{ fetchFromGitHub }:
|
||||
|
||||
{
|
||||
qmplay2 = let
|
||||
qmplay2 =
|
||||
let
|
||||
self = {
|
||||
pname = "qmplay2";
|
||||
version = "24.06.16";
|
||||
|
|
Loading…
Reference in a new issue