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,46 +45,44 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
popd
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
ninja
|
||||
pkg-config
|
||||
]
|
||||
++ lib.optionals (qtVersion == "6") [
|
||||
qt6.wrapQtAppsHook
|
||||
]
|
||||
++ lib.optionals (qtVersion == "5") [
|
||||
qt5.wrapQtAppsHook
|
||||
];
|
||||
nativeBuildInputs =
|
||||
[
|
||||
cmake
|
||||
ninja
|
||||
pkg-config
|
||||
]
|
||||
++ lib.optionals (qtVersion == "6") [ qt6.wrapQtAppsHook ]
|
||||
++ lib.optionals (qtVersion == "5") [ qt5.wrapQtAppsHook ];
|
||||
|
||||
buildInputs = [
|
||||
alsa-lib
|
||||
ffmpeg
|
||||
fribidi
|
||||
game-music-emu
|
||||
libXdmcp
|
||||
libXv
|
||||
libass
|
||||
libcddb
|
||||
libcdio
|
||||
libpulseaudio
|
||||
libsidplayfp
|
||||
libva
|
||||
libxcb
|
||||
taglib
|
||||
vulkan-headers
|
||||
vulkan-tools
|
||||
]
|
||||
++ lib.optionals (qtVersion == "6") [
|
||||
qt6.qt5compat
|
||||
qt6.qtbase
|
||||
qt6.qtsvg
|
||||
qt6.qttools
|
||||
]
|
||||
++ lib.optionals (qtVersion == "5") [
|
||||
qt5.qtbase
|
||||
qt5.qttools
|
||||
];
|
||||
buildInputs =
|
||||
[
|
||||
alsa-lib
|
||||
ffmpeg
|
||||
fribidi
|
||||
game-music-emu
|
||||
libXdmcp
|
||||
libXv
|
||||
libass
|
||||
libcddb
|
||||
libcdio
|
||||
libpulseaudio
|
||||
libsidplayfp
|
||||
libva
|
||||
libxcb
|
||||
taglib
|
||||
vulkan-headers
|
||||
vulkan-tools
|
||||
]
|
||||
++ lib.optionals (qtVersion == "6") [
|
||||
qt6.qt5compat
|
||||
qt6.qtbase
|
||||
qt6.qtsvg
|
||||
qt6.qttools
|
||||
]
|
||||
++ lib.optionals (qtVersion == "5") [
|
||||
qt5.qtbase
|
||||
qt5.qttools
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
|
@ -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,21 +1,20 @@
|
|||
{
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
{ fetchFromGitHub }:
|
||||
|
||||
{
|
||||
qmplay2 = let
|
||||
self = {
|
||||
pname = "qmplay2";
|
||||
version = "24.06.16";
|
||||
qmplay2 =
|
||||
let
|
||||
self = {
|
||||
pname = "qmplay2";
|
||||
version = "24.06.16";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zaps166";
|
||||
repo = "QMPlay2";
|
||||
rev = self.version;
|
||||
hash = "sha256-HoFyC/OFmthUYfyo6//+KmBIq06MPb5GmDekJbnsz5o=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "zaps166";
|
||||
repo = "QMPlay2";
|
||||
rev = self.version;
|
||||
hash = "sha256-HoFyC/OFmthUYfyo6//+KmBIq06MPb5GmDekJbnsz5o=";
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
in
|
||||
self;
|
||||
|
||||
qmvk = {
|
||||
|
|
Loading…
Reference in a new issue