mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
libresample: Add package
This commit is contained in:
parent
63d91b75a1
commit
dc614aff92
27
pkgs/development/libraries/libresample/default.nix
Normal file
27
pkgs/development/libraries/libresample/default.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{stdenv, fetchurl, cmake}:
|
||||
|
||||
let
|
||||
patch = fetchurl {
|
||||
url = http://ftp.debian.org/debian/pool/main/libr/libresample/libresample_0.1.3-3.diff.gz;
|
||||
sha256 = "063w8rqxw87fc89gas47vk0ll7xl8cy7d8g70gm1l62bqkkajklx";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "libresample-0.1.3";
|
||||
src = fetchurl {
|
||||
url = http://ftp.debian.org/debian/pool/main/libr/libresample/libresample_0.1.3.orig.tar.gz;
|
||||
sha256 = "05a8mmh1bw5afqx0kfdqzmph4x2npcs4idx0p0v6q95lwf22l8i0";
|
||||
};
|
||||
patches = [ patch ];
|
||||
preConfigure = ''
|
||||
cat debian/patches/1001_shlib-cmake.patch | patch -p1
|
||||
'';
|
||||
buildInputs = [ cmake ];
|
||||
|
||||
meta = {
|
||||
description = "A real-time library for sampling rate conversion library";
|
||||
license = stdenv.lib.licenses.lgpl2Plus;
|
||||
homepage = https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html;
|
||||
maintainers = stdenv.lib.maintainers.sander;
|
||||
};
|
||||
}
|
@ -4955,6 +4955,8 @@ let
|
||||
libre = callPackage ../development/libraries/libre {};
|
||||
librem = callPackage ../development/libraries/librem {};
|
||||
|
||||
libresample = callPackage ../development/libraries/libresample {};
|
||||
|
||||
libsamplerate = callPackage ../development/libraries/libsamplerate {
|
||||
stdenv = if stdenv.isDarwin
|
||||
then overrideGCC stdenv gccApple
|
||||
|
Loading…
Reference in New Issue
Block a user