mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 05:00:16 +00:00
Adding GSM and CELT codecs; dependencies of sflphone - failed to buuild itself
svn path=/nixpkgs/trunk/; revision=27364
This commit is contained in:
parent
1c00dfa14a
commit
3c82ed030f
47
pkgs/development/libraries/celt/0.7.nix
Normal file
47
pkgs/development/libraries/celt/0.7.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
x@{builderDefsPackage
|
||||
, ...}:
|
||||
builderDefsPackage
|
||||
(a :
|
||||
let
|
||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
||||
[];
|
||||
|
||||
buildInputs = map (n: builtins.getAttr n x)
|
||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
||||
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;
|
||||
inherit buildInputs;
|
||||
|
||||
/* 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 = "free";
|
||||
};
|
||||
passthru = {
|
||||
updateInfo = {
|
||||
downloadPage = "http://www.celt-codec.org/downloads/";
|
||||
};
|
||||
};
|
||||
}) x
|
||||
|
47
pkgs/development/libraries/celt/default.nix
Normal file
47
pkgs/development/libraries/celt/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
x@{builderDefsPackage
|
||||
, ...}:
|
||||
builderDefsPackage
|
||||
(a :
|
||||
let
|
||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
||||
[];
|
||||
|
||||
buildInputs = map (n: builtins.getAttr n x)
|
||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
||||
sourceInfo = rec {
|
||||
baseName="celt";
|
||||
version="0.11.1";
|
||||
name="${baseName}-${version}";
|
||||
url="http://downloads.xiph.org/releases/${baseName}/${name}.tar.gz";
|
||||
hash="1gsc3pxydyzzra8w0r6hrrsalm76lrq4lw6bd283qa4bpagmghh1";
|
||||
};
|
||||
in
|
||||
rec {
|
||||
src = a.fetchurl {
|
||||
url = sourceInfo.url;
|
||||
sha256 = sourceInfo.hash;
|
||||
};
|
||||
|
||||
inherit (sourceInfo) name version;
|
||||
inherit buildInputs;
|
||||
|
||||
/* 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 = "free";
|
||||
};
|
||||
passthru = {
|
||||
updateInfo = {
|
||||
downloadPage = "http://www.celt-codec.org/downloads/";
|
||||
};
|
||||
};
|
||||
}) x
|
||||
|
60
pkgs/development/libraries/gsm/default.nix
Normal file
60
pkgs/development/libraries/gsm/default.nix
Normal file
|
@ -0,0 +1,60 @@
|
|||
x@{builderDefsPackage
|
||||
, ...}:
|
||||
builderDefsPackage
|
||||
(a :
|
||||
let
|
||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
||||
[];
|
||||
|
||||
buildInputs = map (n: builtins.getAttr n x)
|
||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
||||
sourceInfo = rec {
|
||||
baseName="gsm";
|
||||
version="1.0.13";
|
||||
name="${baseName}-${version}";
|
||||
url="http://www.quut.com/gsm/${name}.tar.gz";
|
||||
hash="1bcjl2h60gvr1dc5a963h3vnz9zl6n8qrfa3qmb2x3229lj1iiaj";
|
||||
};
|
||||
in
|
||||
rec {
|
||||
src = a.fetchurl {
|
||||
url = sourceInfo.url;
|
||||
sha256 = sourceInfo.hash;
|
||||
};
|
||||
|
||||
inherit (sourceInfo) name version;
|
||||
inherit buildInputs;
|
||||
|
||||
/* doConfigure should be removed if not needed */
|
||||
phaseNames = ["createDirs" "setVars" "doMakeInstall"];
|
||||
|
||||
createDirs = a.fullDepEntry ''
|
||||
ensureDir "$out/"{bin,lib,share/man,share/info,include/gsm}
|
||||
'' ["minInit" "defEnsureDir"];
|
||||
|
||||
setVars = a.noDepEntry ''
|
||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -fPIC"
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
''INSTALL_ROOT="$out"''
|
||||
''GSM_INSTALL_INC="$out/include/gsm"''
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "A GSM codec library";
|
||||
maintainers = with a.lib.maintainers;
|
||||
[
|
||||
raskin
|
||||
];
|
||||
platforms = with a.lib.platforms;
|
||||
linux;
|
||||
license = "free-noncopyleft";
|
||||
};
|
||||
passthru = {
|
||||
updateInfo = {
|
||||
downloadPage = "http://www.quut.com/gsm/";
|
||||
};
|
||||
};
|
||||
}) x
|
||||
|
|
@ -2907,6 +2907,9 @@ let
|
|||
ccrtp = callPackage ../development/libraries/ccrtp { };
|
||||
ccrtp_1_8 = callPackage ../development/libraries/ccrtp/1.8.nix { };
|
||||
|
||||
celt = callPackage ../development/libraries/celt {};
|
||||
celt_0_7 = callPackage ../development/libraries/celt/0.7.nix {};
|
||||
|
||||
cgui = callPackage ../development/libraries/cgui {};
|
||||
|
||||
check = callPackage ../development/libraries/check { };
|
||||
|
@ -3294,6 +3297,8 @@ let
|
|||
|
||||
gsl = callPackage ../development/libraries/gsl { };
|
||||
|
||||
gsm = callPackage ../development/libraries/gsm {};
|
||||
|
||||
gsoap = callPackage ../development/libraries/gsoap { };
|
||||
|
||||
gss = callPackage ../development/libraries/gss { };
|
||||
|
|
Loading…
Reference in a new issue