Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 pkg-config, 6 libsndfile, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "libsamplerate"; 11 version = "0.2.2"; 12 13 src = fetchurl { 14 url = "https://github.com/libsndfile/libsamplerate/releases/download/${version}/libsamplerate-${version}.tar.xz"; 15 hash = "sha256-MljaKAUR0ktJ1rCGFbvoJNDKzJhCsOTK8RxSzysEOJM="; 16 }; 17 18 nativeBuildInputs = [ pkg-config ]; 19 buildInputs = [ libsndfile ]; 20 21 configureFlags = [ "--disable-fftw" ]; 22 23 outputs = [ 24 "dev" 25 "out" 26 ]; 27 28 meta = with lib; { 29 description = "Sample Rate Converter for audio"; 30 homepage = "https://libsndfile.github.io/libsamplerate/"; 31 license = licenses.bsd2; 32 maintainers = with maintainers; [ lovek323 ]; 33 platforms = platforms.all; 34 # Linker is unhappy with the `.def` file. 35 broken = stdenv.hostPlatform.isMinGW; 36 }; 37}