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

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

50 lines
931 B
Nix
Raw Normal View History

2021-06-01 15:27:34 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, gtk3
, openssl
, alsa-lib
2021-06-01 15:27:34 +00:00
, pkg-config
, ffmpeg
, dbus
2023-12-25 06:09:31 +00:00
, libpulseaudio
2021-06-01 15:27:34 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "songrec";
2024-01-28 08:47:10 +00:00
version = "0.4.2";
2021-06-01 15:27:34 +00:00
src = fetchFromGitHub {
owner = "marin-m";
repo = pname;
rev = version;
2024-01-28 08:47:10 +00:00
hash = "sha256-S44gtyz6L6uaLm3q75y8S4NJb77Vfy+Sd+J06IroHIM=";
2021-06-01 15:27:34 +00:00
};
2024-01-28 08:47:10 +00:00
cargoHash = "sha256-f2xAWh+y0Jw7QVLZBkajMLN3ocCyRsR480ai7+07LM4=";
2021-06-01 15:27:34 +00:00
nativeBuildInputs = [ pkg-config ];
2023-12-25 06:09:31 +00:00
buildInputs = [
alsa-lib
dbus
gtk3
openssl
ffmpeg
libpulseaudio
];
2021-06-01 15:27:34 +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 ];
2024-02-11 02:19:15 +00:00
mainProgram = "songrec";
2021-06-01 15:27:34 +00:00
};
}