2021-04-26 10:04:34 +02:00
|
|
|
{ lib
|
2023-04-07 06:26:22 +02:00
|
|
|
, stdenv
|
2021-04-26 10:04:34 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
, appstream-glib
|
2023-05-12 16:17:16 +02:00
|
|
|
, cargo
|
2023-04-07 06:26:22 +02:00
|
|
|
, dbus
|
2021-04-26 10:04:34 +02:00
|
|
|
, desktop-file-utils
|
|
|
|
, glib
|
2023-04-07 06:26:22 +02:00
|
|
|
, glib-networking
|
2021-04-26 10:04:34 +02:00
|
|
|
, gobject-introspection
|
|
|
|
, gst_all_1
|
2021-05-24 12:20:49 +02:00
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
2023-04-07 06:26:22 +02:00
|
|
|
, libpulseaudio
|
|
|
|
, libsoup_3
|
2021-04-26 10:04:34 +02:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2023-04-07 06:26:22 +02:00
|
|
|
, rustPlatform
|
2023-05-12 16:17:16 +02:00
|
|
|
, rustc
|
2022-05-18 06:56:55 +02:00
|
|
|
, wrapGAppsHook4
|
2021-04-26 10:04:34 +02:00
|
|
|
}:
|
|
|
|
|
2023-04-07 06:26:22 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2021-04-26 10:04:34 +02:00
|
|
|
pname = "mousai";
|
2023-09-16 23:30:11 +02:00
|
|
|
version = "0.7.5";
|
2021-04-26 10:04:34 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SeaDve";
|
|
|
|
repo = "Mousai";
|
|
|
|
rev = "v${version}";
|
2023-09-16 23:30:11 +02:00
|
|
|
hash = "sha256-4olJGpS5QfPyt6/ZmigoojP7kGjx6LExW3LKrL4nxTE=";
|
2021-04-26 10:04:34 +02:00
|
|
|
};
|
|
|
|
|
2023-04-07 06:26:22 +02:00
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2023-09-16 23:30:11 +02:00
|
|
|
hash = "sha256-SeKcguCB+f2ocKKf7Moc74O2sGK2EXgEEkTiN82dSps=";
|
2023-04-07 06:26:22 +02:00
|
|
|
};
|
2021-04-26 10:04:34 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2022-05-18 06:56:55 +02:00
|
|
|
wrapGAppsHook4
|
2023-05-12 16:17:16 +02:00
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
cargo
|
|
|
|
rustc
|
|
|
|
];
|
2021-04-26 10:04:34 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
2023-04-07 06:26:22 +02:00
|
|
|
dbus
|
2021-04-26 10:04:34 +02:00
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good
|
2023-04-07 06:26:22 +02:00
|
|
|
gst_all_1.gst-plugins-bad
|
|
|
|
glib
|
|
|
|
glib-networking
|
2021-05-24 12:20:49 +02:00
|
|
|
gtk4
|
|
|
|
libadwaita
|
2023-04-07 06:26:22 +02:00
|
|
|
libpulseaudio
|
|
|
|
libsoup_3
|
2021-04-26 10:04:34 +02: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 06:26:22 +02:00
|
|
|
platforms = platforms.linux;
|
2021-04-26 10:04:34 +02:00
|
|
|
};
|
|
|
|
}
|