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

40 lines
838 B
Nix
Raw Normal View History

2021-06-01 16:27:34 +01:00
{ lib
, rustPlatform
, fetchFromGitHub
, gtk3
, openssl
, alsa-lib
2021-06-01 16:27:34 +01:00
, pkg-config
, ffmpeg
}:
rustPlatform.buildRustPackage rec {
pname = "songrec";
2021-09-14 07:27:56 +01:00
version = "0.2.0";
2021-06-01 16:27:34 +01:00
src = fetchFromGitHub {
owner = "marin-m";
repo = pname;
rev = version;
2021-09-14 07:27:56 +01:00
sha256 = "sha256-9fq2P+F7Olm9bUQ1HbH/Lzb5J2mJCma+x/vuH3wf+zY=";
2021-06-01 16:27:34 +01:00
};
2021-09-14 07:27:56 +01:00
cargoSha256 = "sha256-ATlwBMuT8AufkrZNe1+U74hYRN4V88ZDKYvCWV52iyI=";
2021-06-01 16:27:34 +01:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ alsa-lib gtk3 openssl ffmpeg ];
2021-06-01 16:27:34 +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 ];
};
}