libopusenc: 0.2.1 -> 0.3 (#493745)
This commit is contained in:
@@ -1,35 +1,52 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
libopus,
|
||||
testers,
|
||||
autoreconfHook,
|
||||
fetchFromGitLab,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libopusenc";
|
||||
version = "0.2.1";
|
||||
version = "0.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://mozilla/opus/libopusenc-${finalAttrs.version}.tar.gz";
|
||||
sha256 = "1ffb0vhlymlsq70pxsjj0ksz77yfm2x0a1x8q50kxmnkm1hxp642";
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.xiph.org";
|
||||
owner = "xiph";
|
||||
repo = "libopusenc";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-n4wmIUyCNPpgHhyRpv4Xpw292M6XRFhQtuY77x6+7JA=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
echo PACKAGE_VERSION="${finalAttrs.version}" > ./package_version
|
||||
'';
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"dev"
|
||||
"doc"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
autoreconfHook
|
||||
];
|
||||
|
||||
buildInputs = [ libopus ];
|
||||
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
|
||||
meta = {
|
||||
description = "Library for encoding .opus audio files and live streams";
|
||||
license = lib.licenses.bsd3;
|
||||
homepage = "https://www.opus-codec.org/";
|
||||
platforms = lib.platforms.unix;
|
||||
pkgConfigModules = [ "libopusenc" ];
|
||||
maintainers = with lib.maintainers; [ pmiddend ];
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user