nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 50 lines 944 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 gtk3, 6 openssl, 7 alsa-lib, 8 pkg-config, 9 ffmpeg, 10 dbus, 11 libpulseaudio, 12}: 13 14rustPlatform.buildRustPackage rec { 15 pname = "songrec"; 16 version = "0.4.3"; 17 18 src = fetchFromGitHub { 19 owner = "marin-m"; 20 repo = "songrec"; 21 rev = version; 22 hash = "sha256-pTonrxlYvfuLRKMXW0Lao4KCoNFlMzE9rH+hwpa60JY="; 23 }; 24 25 cargoHash = "sha256-wSRn1JY067RVqGGdiox87+zRb2/2OMcvKLYZE1QUs/s="; 26 27 nativeBuildInputs = [ pkg-config ]; 28 29 buildInputs = [ 30 alsa-lib 31 dbus 32 gtk3 33 openssl 34 ffmpeg 35 libpulseaudio 36 ]; 37 38 postInstall = '' 39 mv packaging/rootfs/usr/share $out/share 40 ''; 41 42 meta = with lib; { 43 description = "Open-source Shazam client for Linux, written in Rust"; 44 homepage = "https://github.com/marin-m/SongRec"; 45 license = licenses.gpl3Only; 46 platforms = platforms.linux; 47 maintainers = with maintainers; [ tcbravo ]; 48 mainProgram = "songrec"; 49 }; 50}