2021-04-26 08:04:34 +00:00
|
|
|
{ lib
|
2023-04-07 04:26:22 +00:00
|
|
|
, stdenv
|
2021-04-26 08:04:34 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, appstream-glib
|
2023-05-12 14:17:16 +00:00
|
|
|
, cargo
|
2023-04-07 04:26:22 +00:00
|
|
|
, dbus
|
2021-04-26 08:04:34 +00:00
|
|
|
, desktop-file-utils
|
|
|
|
, glib
|
2023-04-07 04:26:22 +00:00
|
|
|
, glib-networking
|
2021-04-26 08:04:34 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, gst_all_1
|
2021-05-24 10:20:49 +00:00
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
2023-04-07 04:26:22 +00:00
|
|
|
, libpulseaudio
|
|
|
|
, libsoup_3
|
2021-04-26 08:04:34 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2023-04-07 04:26:22 +00:00
|
|
|
, rustPlatform
|
2023-05-12 14:17:16 +00:00
|
|
|
, rustc
|
2022-05-18 04:56:55 +00:00
|
|
|
, wrapGAppsHook4
|
2021-04-26 08:04:34 +00:00
|
|
|
}:
|
|
|
|
|
2023-04-07 04:26:22 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-04-26 08:04:34 +00:00
|
|
|
pname = "mousai";
|
2023-09-16 21:30:11 +00:00
|
|
|
version = "0.7.5";
|
2021-04-26 08:04:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SeaDve";
|
|
|
|
repo = "Mousai";
|
|
|
|
rev = "v${version}";
|
2023-09-16 21:30:11 +00:00
|
|
|
hash = "sha256-4olJGpS5QfPyt6/ZmigoojP7kGjx6LExW3LKrL4nxTE=";
|
2021-04-26 08:04:34 +00:00
|
|
|
};
|
|
|
|
|
2023-04-07 04:26:22 +00:00
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2023-09-16 21:30:11 +00:00
|
|
|
hash = "sha256-SeKcguCB+f2ocKKf7Moc74O2sGK2EXgEEkTiN82dSps=";
|
2023-04-07 04:26:22 +00:00
|
|
|
};
|
2021-04-26 08:04:34 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2022-05-18 04:56:55 +00:00
|
|
|
wrapGAppsHook4
|
2023-05-12 14:17:16 +00:00
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
cargo
|
|
|
|
rustc
|
|
|
|
];
|
2021-04-26 08:04:34 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2023-04-07 04:26:22 +00:00
|
|
|
dbus
|
2021-04-26 08:04:34 +00:00
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good
|
2023-04-07 04:26:22 +00:00
|
|
|
gst_all_1.gst-plugins-bad
|
|
|
|
glib
|
|
|
|
glib-networking
|
2021-05-24 10:20:49 +00:00
|
|
|
gtk4
|
|
|
|
libadwaita
|
2023-04-07 04:26:22 +00:00
|
|
|
libpulseaudio
|
|
|
|
libsoup_3
|
2021-04-26 08:04:34 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Identify any songs in seconds";
|
|
|
|
homepage = "https://github.com/SeaDve/Mousai";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2023-04-07 04:26:22 +00:00
|
|
|
platforms = platforms.linux;
|
2021-04-26 08:04:34 +00:00
|
|
|
};
|
|
|
|
}
|