mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
50 lines
928 B
Nix
50 lines
928 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, gtk3
|
|
, openssl
|
|
, alsa-lib
|
|
, pkg-config
|
|
, ffmpeg
|
|
, dbus
|
|
, libpulseaudio
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "songrec";
|
|
version = "0.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "marin-m";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-S44gtyz6L6uaLm3q75y8S4NJb77Vfy+Sd+J06IroHIM=";
|
|
};
|
|
|
|
cargoHash = "sha256-f2xAWh+y0Jw7QVLZBkajMLN3ocCyRsR480ai7+07LM4=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
alsa-lib
|
|
dbus
|
|
gtk3
|
|
openssl
|
|
ffmpeg
|
|
libpulseaudio
|
|
];
|
|
|
|
postInstall = ''
|
|
mv packaging/rootfs/usr/share $out/share
|
|
'';
|
|
|
|
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 ];
|
|
mainProgram = "songrec";
|
|
};
|
|
}
|