2021-01-21 17:00:13 +00:00
|
|
|
{lib, stdenv, fetchurl, cmake}:
|
2014-04-05 19:54:47 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
patch = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "mirror://debian/pool/main/libr/libresample/libresample_0.1.3-3.diff.gz";
|
2014-04-05 19:54:47 +01:00
|
|
|
sha256 = "063w8rqxw87fc89gas47vk0ll7xl8cy7d8g70gm1l62bqkkajklx";
|
|
|
|
};
|
|
|
|
in
|
2021-06-22 14:21:29 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libresample";
|
|
|
|
version = "0.1.3";
|
2014-04-05 19:54:47 +01:00
|
|
|
src = fetchurl {
|
2021-06-22 14:21:29 +01:00
|
|
|
url = "mirror://debian/pool/main/libr/libresample/libresample_${version}.orig.tar.gz";
|
2014-04-05 19:54:47 +01:00
|
|
|
sha256 = "05a8mmh1bw5afqx0kfdqzmph4x2npcs4idx0p0v6q95lwf22l8i0";
|
|
|
|
};
|
|
|
|
patches = [ patch ];
|
|
|
|
preConfigure = ''
|
|
|
|
cat debian/patches/1001_shlib-cmake.patch | patch -p1
|
|
|
|
'';
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2014-04-05 19:54:47 +01:00
|
|
|
meta = {
|
|
|
|
description = "A real-time library for sampling rate conversion library";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.lgpl2Plus;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html";
|
2021-01-21 17:00:13 +00:00
|
|
|
maintainers = [ lib.maintainers.sander ];
|
|
|
|
platforms = lib.platforms.unix;
|
2014-04-05 19:54:47 +01:00
|
|
|
};
|
|
|
|
}
|