2021-06-01 15:27:34 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gtk3
|
|
|
|
, openssl
|
2021-06-10 02:57:09 +00:00
|
|
|
, alsa-lib
|
2021-06-01 15:27:34 +00:00
|
|
|
, pkg-config
|
|
|
|
, ffmpeg
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "songrec";
|
2021-10-28 23:04:11 +00:00
|
|
|
version = "0.2.1";
|
2021-06-01 15:27:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "marin-m";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-10-28 23:04:11 +00:00
|
|
|
sha256 = "sha256-pKHKM4XOuuZCr4neMe1AVqWMuZghwYNe+ifJCQhXG/c=";
|
2021-06-01 15:27:34 +00:00
|
|
|
};
|
|
|
|
|
2021-10-28 23:04:11 +00:00
|
|
|
cargoSha256 = "sha256-J3ezXBOGJwzIPTHXujHpswsgh9PFy110AOQ2pPJNm10=";
|
2021-06-01 15:27:34 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2021-06-10 02:57:09 +00:00
|
|
|
buildInputs = [ alsa-lib gtk3 openssl ffmpeg ];
|
2021-06-01 15:27:34 +00:00
|
|
|
|
2021-06-15 10:58:44 +00:00
|
|
|
postInstall = ''
|
|
|
|
mv packaging/rootfs/usr/share $out/share
|
|
|
|
'';
|
|
|
|
|
2021-06-01 15:27:34 +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 ];
|
|
|
|
};
|
|
|
|
}
|