summary refs log tree commit diff
path: root/pkgs/development/libraries/phonon
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2023-07-23 23:41:57 +0200
committerSandro Jäckel <sandro.jaeckel@gmail.com>2023-07-23 23:41:57 +0200
commit1aa855331bfc91bd7c9fa70de693f3c2904f09bd (patch)
tree0c6031cb6b3e50201d361729c081d284b99a3a1a /pkgs/development/libraries/phonon
parentad274bf46a418c5db3e3e94ef9295f8824fc2729 (diff)
downloadnixpkgs-1aa855331bfc91bd7c9fa70de693f3c2904f09bd.tar
nixpkgs-1aa855331bfc91bd7c9fa70de693f3c2904f09bd.tar.gz
nixpkgs-1aa855331bfc91bd7c9fa70de693f3c2904f09bd.tar.bz2
nixpkgs-1aa855331bfc91bd7c9fa70de693f3c2904f09bd.tar.lz
nixpkgs-1aa855331bfc91bd7c9fa70de693f3c2904f09bd.tar.xz
nixpkgs-1aa855331bfc91bd7c9fa70de693f3c2904f09bd.tar.zst
nixpkgs-1aa855331bfc91bd7c9fa70de693f3c2904f09bd.zip
backends: move meta to the end, fix formatting
in accordance with contributing guide
Diffstat (limited to 'pkgs/development/libraries/phonon')
-rw-r--r--pkgs/development/libraries/phonon/backends/gstreamer.nix37
1 files changed, 18 insertions, 19 deletions
diff --git a/pkgs/development/libraries/phonon/backends/gstreamer.nix b/pkgs/development/libraries/phonon/backends/gstreamer.nix
index e0614c73741..fc0afbe2184 100644
--- a/pkgs/development/libraries/phonon/backends/gstreamer.nix
+++ b/pkgs/development/libraries/phonon/backends/gstreamer.nix
@@ -7,14 +7,6 @@ stdenv.mkDerivation rec {
   pname = "phonon-backend-gstreamer";
   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 {
     url = "mirror://kde/stable/phonon/${pname}/${version}/${pname}-${version}.tar.xz";
     sha256 = "1wk1ip2w7fkh65zk6rilj314dna0hgsv2xhjmpr5w08xa8sii1y5";
@@ -34,17 +26,16 @@ stdenv.mkDerivation rec {
 
   dontWrapQtApps = true;
 
-  env.NIX_CFLAGS_COMPILE =
-    let gstPluginPaths =
-          lib.makeSearchPathOutput "lib" "/lib/gstreamer-1.0"
-          (with gst_all_1; [
-            gstreamer
-            gst-plugins-base
-            gst-plugins-good
-            gst-plugins-ugly
-            gst-plugins-bad
-            gst-libav
-          ]);
+  env.NIX_CFLAGS_COMPILE = let
+    gstPluginPaths = lib.makeSearchPathOutput "lib" "/lib/gstreamer-1.0"
+      (with gst_all_1; [
+        gstreamer
+        gst-plugins-base
+        gst-plugins-good
+        gst-plugins-ugly
+        gst-plugins-bad
+        gst-libav
+      ]);
     in toString [
       # This flag should be picked up through pkg-config, but it isn't.
       "-I${gst_all_1.gstreamer.dev}/lib/gstreamer-1.0/include"
@@ -70,4 +61,12 @@ stdenv.mkDerivation rec {
   cmakeFlags = [
     "-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;
+  };
 }