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