backends: move meta to the end, fix formatting
in accordance with contributing guide
This commit is contained in:
parent
ad274bf46a
commit
1aa855331b
|
@ -7,14 +7,6 @@ stdenv.mkDerivation rec {
|
||||||
pname = "phonon-backend-gstreamer";
|
pname = "phonon-backend-gstreamer";
|
||||||
version = "4.10.0";
|
version = "4.10.0";
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
homepage = "https://phonon.kde.org/";
|
|
||||||
description = "GStreamer backend for Phonon";
|
|
||||||
platforms = platforms.linux;
|
|
||||||
maintainers = with maintainers; [ ttuegel ];
|
|
||||||
license = licenses.lgpl21;
|
|
||||||
};
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://kde/stable/phonon/${pname}/${version}/${pname}-${version}.tar.xz";
|
url = "mirror://kde/stable/phonon/${pname}/${version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "1wk1ip2w7fkh65zk6rilj314dna0hgsv2xhjmpr5w08xa8sii1y5";
|
sha256 = "1wk1ip2w7fkh65zk6rilj314dna0hgsv2xhjmpr5w08xa8sii1y5";
|
||||||
|
@ -34,17 +26,16 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
dontWrapQtApps = true;
|
dontWrapQtApps = true;
|
||||||
|
|
||||||
env.NIX_CFLAGS_COMPILE =
|
env.NIX_CFLAGS_COMPILE = let
|
||||||
let gstPluginPaths =
|
gstPluginPaths = lib.makeSearchPathOutput "lib" "/lib/gstreamer-1.0"
|
||||||
lib.makeSearchPathOutput "lib" "/lib/gstreamer-1.0"
|
(with gst_all_1; [
|
||||||
(with gst_all_1; [
|
gstreamer
|
||||||
gstreamer
|
gst-plugins-base
|
||||||
gst-plugins-base
|
gst-plugins-good
|
||||||
gst-plugins-good
|
gst-plugins-ugly
|
||||||
gst-plugins-ugly
|
gst-plugins-bad
|
||||||
gst-plugins-bad
|
gst-libav
|
||||||
gst-libav
|
]);
|
||||||
]);
|
|
||||||
in toString [
|
in toString [
|
||||||
# This flag should be picked up through pkg-config, but it isn't.
|
# This flag should be picked up through pkg-config, but it isn't.
|
||||||
"-I${gst_all_1.gstreamer.dev}/lib/gstreamer-1.0/include"
|
"-I${gst_all_1.gstreamer.dev}/lib/gstreamer-1.0/include"
|
||||||
|
@ -70,4 +61,12 @@ stdenv.mkDerivation rec {
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}"
|
"-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://phonon.kde.org/";
|
||||||
|
description = "GStreamer backend for Phonon";
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ ttuegel ];
|
||||||
|
license = licenses.lgpl21;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue