soxr: switch to pname+version, minor cleanup
This commit is contained in:
parent
aa1277c258
commit
2c868afc56
1 changed files with 13 additions and 10 deletions
|
@ -1,10 +1,11 @@
|
||||||
{ lib, stdenv, fetchurl, cmake }:
|
{ lib, stdenv, fetchurl, cmake }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "soxr-0.1.3";
|
pname = "soxr";
|
||||||
|
version = "0.1.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/soxr/${name}-Source.tar.xz";
|
url = "mirror://sourceforge/soxr/soxr-${version}-Source.tar.xz";
|
||||||
sha256 = "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di";
|
sha256 = "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -15,7 +16,8 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
outputs = [ "out" "doc" ]; # headers are just two and very small
|
outputs = [ "out" "doc" ]; # headers are just two and very small
|
||||||
|
|
||||||
preConfigure = if stdenv.isDarwin then ''
|
preConfigure =
|
||||||
|
if stdenv.isDarwin then ''
|
||||||
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}"`pwd`/build/src
|
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}"`pwd`/build/src
|
||||||
'' else ''
|
'' else ''
|
||||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}"`pwd`/build/src
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}"`pwd`/build/src
|
||||||
|
@ -23,10 +25,11 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "An audio resampling library";
|
description = "An audio resampling library";
|
||||||
homepage = "http://soxr.sourceforge.net";
|
homepage = "http://soxr.sourceforge.net";
|
||||||
license = lib.licenses.lgpl21Plus;
|
license = licenses.lgpl21Plus;
|
||||||
platforms = lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue