2021-06-06 07:54:09 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gtk3
|
|
|
|
, openssl
|
2021-06-28 23:13:55 +00:00
|
|
|
, alsa-lib
|
2021-06-06 07:54:09 +00:00
|
|
|
, pkg-config
|
|
|
|
, ffmpeg
|
2022-02-10 20:34:41 +00:00
|
|
|
, dbus
|
2024-01-25 14:12:00 +00:00
|
|
|
, libpulseaudio
|
2021-06-06 07:54:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "songrec";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.4.2";
|
2021-06-06 07:54:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "marin-m";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-S44gtyz6L6uaLm3q75y8S4NJb77Vfy+Sd+J06IroHIM=";
|
2021-06-06 07:54:09 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
cargoHash = "sha256-f2xAWh+y0Jw7QVLZBkajMLN3ocCyRsR480ai7+07LM4=";
|
2021-06-06 07:54:09 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
buildInputs = [
|
|
|
|
alsa-lib
|
|
|
|
dbus
|
|
|
|
gtk3
|
|
|
|
openssl
|
|
|
|
ffmpeg
|
|
|
|
libpulseaudio
|
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv packaging/rootfs/usr/share $out/share
|
|
|
|
'';
|
2021-06-06 07:54:09 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An open-source Shazam client for Linux, written in Rust";
|
|
|
|
homepage = "https://github.com/marin-m/SongRec";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ tcbravo ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "songrec";
|
2021-06-06 07:54:09 +00:00
|
|
|
};
|
|
|
|
}
|