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
928 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-10-03 17:39:19 +00:00
version = "0.4.3";
2021-06-01 15:27:34 +00:00
src = fetchFromGitHub {
owner = "marin-m";
repo = pname;
rev = version;
2024-10-03 17:39:19 +00:00
hash = "sha256-pTonrxlYvfuLRKMXW0Lao4KCoNFlMzE9rH+hwpa60JY=";
2021-06-01 15:27:34 +00:00
};
2024-10-03 17:39:19 +00:00
cargoHash = "sha256-2BXUZD63xzHpUi8lk2fV5qBmeq6Gzpq0uEcKfbReANI=";
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 = "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
};
}