Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libresample / default.nix
blobf466229cfe8e8e4bb0efd0ccabaa70acbdf9086b
1 {lib, stdenv, fetchurl, cmake}:
3 let
4   patch = fetchurl {
5     url = "mirror://debian/pool/main/libr/libresample/libresample_0.1.3-3.diff.gz";
6     sha256 = "063w8rqxw87fc89gas47vk0ll7xl8cy7d8g70gm1l62bqkkajklx";
7   };
8 in
9 stdenv.mkDerivation rec {
10   pname = "libresample";
11   version = "0.1.3";
12   src = fetchurl {
13     url = "mirror://debian/pool/main/libr/libresample/libresample_${version}.orig.tar.gz";
14     sha256 = "05a8mmh1bw5afqx0kfdqzmph4x2npcs4idx0p0v6q95lwf22l8i0";
15   };
16   patches = [ patch ];
17   preConfigure = ''
18     cat debian/patches/1001_shlib-cmake.patch | patch -p1
19   '';
20   nativeBuildInputs = [ cmake ];
22   meta = {
23     description = "A real-time library for sampling rate conversion library";
24     license = lib.licenses.lgpl2Plus;
25     homepage = "https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html";
26     maintainers = [ lib.maintainers.sander ];
27     platforms = lib.platforms.unix;
28   };