summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Schütz <nix@dotlambda.de>2023-04-06 21:26:22 -0700
committerRobert Schütz <nix@dotlambda.de>2023-04-08 21:06:19 -0700
commit1ad5b00d013723f15a8f84927333b543d746a09c (patch)
tree973563b4eb1979ac5252d564a572f6d026cffe27
parent97afa6ec9b8d6547279aae8d6114f3b25cd74fbe (diff)
downloadnixpkgs-1ad5b00d013723f15a8f84927333b543d746a09c.tar
nixpkgs-1ad5b00d013723f15a8f84927333b543d746a09c.tar.gz
nixpkgs-1ad5b00d013723f15a8f84927333b543d746a09c.tar.bz2
nixpkgs-1ad5b00d013723f15a8f84927333b543d746a09c.tar.lz
nixpkgs-1ad5b00d013723f15a8f84927333b543d746a09c.tar.xz
nixpkgs-1ad5b00d013723f15a8f84927333b543d746a09c.tar.zst
nixpkgs-1ad5b00d013723f15a8f84927333b543d746a09c.zip
mousai: 0.6.6 -> 0.7.0
Diff: https://github.com/SeaDve/Mousai/compare/v0.6.6...v0.7.0

Changelog: https://github.com/SeaDve/Mousai/releases/tag/v0.7.0
-rw-r--r--pkgs/applications/audio/mousai/default.nix61
1 files changed, 26 insertions, 35 deletions
diff --git a/pkgs/applications/audio/mousai/default.nix b/pkgs/applications/audio/mousai/default.nix
index 51b5aa037f0..c652e3b5e4c 100644
--- a/pkgs/applications/audio/mousai/default.nix
+++ b/pkgs/applications/audio/mousai/default.nix
@@ -1,76 +1,66 @@
 { lib
-, python3
+, stdenv
 , fetchFromGitHub
-, substituteAll
 , appstream-glib
+, dbus
 , desktop-file-utils
-, gettext
 , glib
+, glib-networking
 , gobject-introspection
 , gst_all_1
 , gtk4
 , libadwaita
-, librsvg
+, libpulseaudio
+, libsoup_3
 , meson
 , ninja
 , pkg-config
-, pulseaudio
+, rustPlatform
 , wrapGAppsHook4
 }:
 
-python3.pkgs.buildPythonApplication rec {
+stdenv.mkDerivation rec {
   pname = "mousai";
-  version = "0.6.6";
-
-  format = "other";
+  version = "0.7.0";
 
   src = fetchFromGitHub {
     owner = "SeaDve";
     repo = "Mousai";
     rev = "v${version}";
-    sha256 = "sha256-nCbFVFg+nVF8BOBfdzQVgdTRXR5UF18PJFC266yTFwg=";
+    hash = "sha256-dL+ZBv97T0sN7mPoOKsp5f6Dl9aarBYm2RRUfOclb+s=";
   };
 
-  patches = [
-    (substituteAll {
-      src = ./paths.patch;
-      pactl = "${lib.getBin pulseaudio}/bin/pactl";
-    })
-  ];
-
-  postPatch = ''
-    substituteInPlace build-aux/meson/postinstall.py \
-      --replace gtk-update-icon-cache gtk4-update-icon-cache
-
-    patchShebangs build-aux/meson
-  '';
+  cargoDeps = rustPlatform.fetchCargoTarball {
+    inherit src;
+    name = "${pname}-${version}";
+    hash = "sha256-qAtMpYVZwyay1KGYlH40T0HambrWh4CaZnwjvqev44g=";
+  };
 
   nativeBuildInputs = [
     appstream-glib
     desktop-file-utils
-    gettext
-    glib
-    gobject-introspection
-    gtk4
     meson
     ninja
     pkg-config
     wrapGAppsHook4
-  ];
+  ] ++ (with rustPlatform; [
+    cargoSetupHook
+    rust.cargo
+    rust.rustc
+  ]);
 
   buildInputs = [
+    dbus
     gst_all_1.gstreamer
     gst_all_1.gst-plugins-base
     gst_all_1.gst-plugins-good
+    gst_all_1.gst-plugins-bad
+    glib
+    glib-networking
     gtk4
     libadwaita
-    librsvg
-    pulseaudio
-  ];
-
-  propagatedBuildInputs = with python3.pkgs; [
-    pygobject3
-    requests
+    libpulseaudio
+    libsoup_3
   ];
 
   meta = with lib; {
@@ -78,5 +68,6 @@ python3.pkgs.buildPythonApplication rec {
     homepage = "https://github.com/SeaDve/Mousai";
     license = licenses.gpl3Plus;
     maintainers = with maintainers; [ dotlambda ];
+    platforms = platforms.linux;
   };
 }