nixpkgs/pkgs/applications/misc/audio/soxr/default.nix
Ryan Mulligan 06a239e3a0 soxr: 0.1.2 -> 0.1.3
Semi-automatic update. These checks were done:

- built on NixOS
- Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
- found 0.1.3 with grep in /nix/store/n6as7dvjq9vlsri84smc05yjmdvwmxww-soxr-0.1.3
- found 0.1.3 in filename of file in /nix/store/n6as7dvjq9vlsri84smc05yjmdvwmxww-soxr-0.1.3
2018-03-09 13:31:31 -08:00

27 lines
729 B
Nix

{ stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec {
name = "soxr-0.1.3";
src = fetchurl {
url = "mirror://sourceforge/soxr/${name}-Source.tar.xz";
sha256 = "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di";
};
outputs = [ "out" "doc" ]; # headers are just two and very small
preConfigure = if stdenv.isDarwin then ''
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:"`pwd`/build/src
'' else ''
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:"`pwd`/build/src
'';
nativeBuildInputs = [ cmake ];
meta = {
description = "An audio resampling library";
homepage = http://soxr.sourceforge.net;
license = stdenv.lib.licenses.lgpl21Plus;
platforms = stdenv.lib.platforms.unix;
};
}