nixpkgs/pkgs/applications/audio/mousai/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

75 lines
1.3 KiB
Nix
Raw Normal View History

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