Package installation help

sudo apt install libsoxr-dev is the debian command,

how to install the same lib in nixos

new user to nixos,

Thanks in advance

You need to install the soxr package in a development environment for the header files to be available:

# shell.nix
{
  pkgs ? import <nixpkgs> { },
}:
pkgs.mkShell { buildInputs = [ pkgs.soxr ]; }
$ nix-shell

installed soxr package using nix-shell -p soxr

installation is success,

but in runtime got a error - libsoxr-sys was not found

I couldn’t find that with nix-index:

$ nix-locate libsoxr-sys
$

You might need to compile that, yourself. I don’t know if it’s part of soxr, but all I could find is GitHub - lrbalt/libsoxr-sys: Rust raw FFI bindings for libsoxr (resampling library for sounds)

Are you building a Rust application?

yes am building a rust based audio application