mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-06 12:14:40 +00:00
celt: refactor to generic
This commit is contained in:
parent
81ee8701f3
commit
cd21ff1311
@ -1,47 +1,10 @@
|
|||||||
x@{builderDefsPackage
|
{ callPackage, fetchurl, ... } @ args:
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
callPackage ./generic.nix (args // rec{
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
version = "0.5.1.3";
|
||||||
sourceInfo = rec {
|
|
||||||
baseName="celt";
|
|
||||||
version="0.5.1.3";
|
|
||||||
name="${baseName}-${version}";
|
|
||||||
url="http://downloads.xiph.org/releases/${baseName}/${name}.tar.gz";
|
|
||||||
hash="0bkam9z5vnrxpbxkkh9kw6yzjka9di56h11iijikdd1f71l5nbpw";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchurl {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
sha256 = sourceInfo.hash;
|
|
||||||
};
|
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
src = fetchurl {
|
||||||
inherit buildInputs;
|
url = "http://downloads.xiph.org/releases/celt/celt-${version}.tar.gz";
|
||||||
|
sha256 = "0bkam9z5vnrxpbxkkh9kw6yzjka9di56h11iijikdd1f71l5nbpw";
|
||||||
/* doConfigure should be removed if not needed */
|
|
||||||
phaseNames = ["doConfigure" "doMakeInstall"];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "CELT - low-delay audio codec";
|
|
||||||
maintainers = with a.lib.maintainers;
|
|
||||||
[
|
|
||||||
raskin
|
|
||||||
];
|
|
||||||
platforms = with a.lib.platforms;
|
|
||||||
linux;
|
|
||||||
license = a.lib.licenses.free;
|
|
||||||
branch = "0.5.1";
|
|
||||||
};
|
};
|
||||||
passthru = {
|
})
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "http://www.celt-codec.org/downloads/";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}) x
|
|
||||||
|
@ -1,47 +1,10 @@
|
|||||||
x@{builderDefsPackage
|
{ callPackage, fetchurl, ... } @ args:
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
callPackage ./generic.nix (args // rec{
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
version = "0.7.1";
|
||||||
sourceInfo = rec {
|
|
||||||
baseName="celt";
|
|
||||||
version="0.7.1";
|
|
||||||
name="${baseName}-${version}";
|
|
||||||
url="http://downloads.xiph.org/releases/${baseName}/${name}.tar.gz";
|
|
||||||
hash="93f0e2dfb59021b19e69dc0dee855eb89f19397db1dea0d0d6f9329cff933066";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchurl {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
sha256 = sourceInfo.hash;
|
|
||||||
};
|
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
src = fetchurl {
|
||||||
inherit buildInputs;
|
url = "http://downloads.xiph.org/releases/celt/celt-${version}.tar.gz";
|
||||||
|
sha256 = "0rihjgzrqcprsv8a1pmiglwik7xqbs2yw3fwd6gb28chnpgy5w4k";
|
||||||
/* doConfigure should be removed if not needed */
|
|
||||||
phaseNames = ["doConfigure" "doMakeInstall"];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "CELT - low-delay audio codec";
|
|
||||||
maintainers = with a.lib.maintainers;
|
|
||||||
[
|
|
||||||
raskin
|
|
||||||
];
|
|
||||||
platforms = with a.lib.platforms;
|
|
||||||
linux;
|
|
||||||
license = a.lib.licenses.free;
|
|
||||||
branch = "0.7";
|
|
||||||
};
|
};
|
||||||
passthru = {
|
})
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "http://www.celt-codec.org/downloads/";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}) x
|
|
||||||
|
@ -1,46 +1,10 @@
|
|||||||
x@{builderDefsPackage
|
{ callPackage, fetchurl, ... } @ args:
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
callPackage ./generic.nix (args // rec{
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
version = "0.11.3";
|
||||||
sourceInfo = rec {
|
|
||||||
baseName="celt";
|
|
||||||
version="0.11.3";
|
|
||||||
name="${baseName}-${version}";
|
|
||||||
url="http://downloads.xiph.org/releases/${baseName}/${name}.tar.gz";
|
|
||||||
hash="0dh893wqbh0q4a0x1xyqryykmnhpv7mkblpch019s04a99fq2r3y";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchurl {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
sha256 = sourceInfo.hash;
|
|
||||||
};
|
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
src = fetchurl {
|
||||||
inherit buildInputs;
|
url = "http://downloads.xiph.org/releases/celt/celt-${version}.tar.gz";
|
||||||
|
sha256 = "0dh893wqbh0q4a0x1xyqryykmnhpv7mkblpch019s04a99fq2r3y";
|
||||||
/* doConfigure should be removed if not needed */
|
|
||||||
phaseNames = ["doConfigure" "doMakeInstall"];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Low-delay audio codec";
|
|
||||||
maintainers = with a.lib.maintainers;
|
|
||||||
[
|
|
||||||
raskin
|
|
||||||
];
|
|
||||||
platforms = with a.lib.platforms;
|
|
||||||
linux;
|
|
||||||
license = a.lib.licenses.free;
|
|
||||||
};
|
};
|
||||||
passthru = {
|
})
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "http://www.celt-codec.org/downloads/";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}) x
|
|
||||||
|
23
pkgs/development/libraries/celt/generic.nix
Normal file
23
pkgs/development/libraries/celt/generic.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{ stdenv, version, src
|
||||||
|
, liboggSupport ? true, libogg ? null # if disabled only the library will be built
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
|
||||||
|
# The celt codec has been deprecated and is now a part of the opus codec
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "celt-${version}";
|
||||||
|
|
||||||
|
inherit src;
|
||||||
|
|
||||||
|
buildInputs = []
|
||||||
|
++ stdenv.lib.optional liboggSupport libogg;
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Ultra-low delay audio codec";
|
||||||
|
homepage = http://www.celt-codec.org/;
|
||||||
|
license = licenses.bsd2;
|
||||||
|
maintainers = with maintainers; [ codyopel raskin ];
|
||||||
|
platform = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user