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

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

41 lines
850 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
2021-06-01 15:27:34 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "songrec";
2022-07-29 23:22:28 +00:00
version = "0.3.2";
2021-06-01 15:27:34 +00:00
src = fetchFromGitHub {
owner = "marin-m";
repo = pname;
rev = version;
2022-07-29 23:22:28 +00:00
sha256 = "sha256-cUiy8ApeUv1K8SEH4APMTvbieGTt4kZYhyB9iGJd/IY=";
2021-06-01 15:27:34 +00:00
};
2022-07-29 23:22:28 +00:00
cargoSha256 = "sha256-Tlq4qDp56PXP4N1UyHjtQoRgDrc/19vIv8uml/lAqqc=";
2021-06-01 15:27:34 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ alsa-lib dbus gtk3 openssl ffmpeg ];
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 ];
};
}