2021-06-01 17:27:34 +02:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gtk3
|
|
|
|
, openssl
|
2021-06-10 04:57:09 +02:00
|
|
|
, alsa-lib
|
2021-06-01 17:27:34 +02:00
|
|
|
, pkg-config
|
|
|
|
, ffmpeg
|
2022-02-04 04:00:33 +01:00
|
|
|
, dbus
|
2021-06-01 17:27:34 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "songrec";
|
2022-02-04 04:00:33 +01:00
|
|
|
version = "0.3.0";
|
2021-06-01 17:27:34 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "marin-m";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-02-04 04:00:33 +01:00
|
|
|
sha256 = "sha256-aHZH3sQNUUPcMRySy8Di0XUoFo4qjGi2pi0phLwORaA=";
|
2021-06-01 17:27:34 +02:00
|
|
|
};
|
|
|
|
|
2022-02-04 04:00:33 +01:00
|
|
|
cargoSha256 = "sha256-EpkB43rMUJO6ouUV9TmQ+RSnGhX32DZHpKic1E6lUyU=";
|
2021-06-01 17:27:34 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2022-02-04 04:00:33 +01:00
|
|
|
buildInputs = [ alsa-lib dbus gtk3 openssl ffmpeg ];
|
2021-06-01 17:27:34 +02:00
|
|
|
|
2021-06-15 12:58:44 +02:00
|
|
|
postInstall = ''
|
|
|
|
mv packaging/rootfs/usr/share $out/share
|
|
|
|
'';
|
|
|
|
|
2021-06-01 17:27:34 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|