mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
adding stun
svn path=/nixpkgs/trunk/; revision=17860
This commit is contained in:
parent
84a2555b2c
commit
1db4de344d
36
pkgs/tools/networking/stun/default.nix
Normal file
36
pkgs/tools/networking/stun/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
args: with args;
|
||||
stdenv.mkDerivation {
|
||||
name = "stun-0.96.dfsg-5";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://debian/pool/main/s/stun/stun_0.96.dfsg.orig.tar.gz;
|
||||
sha256 = "09bnb3p6h8fhsskdp4wrl9hhml1va0xb28fkwgyzs32q2333pgz4";
|
||||
};
|
||||
|
||||
# make it compile on x86_64-linux:
|
||||
postUnpack = ''
|
||||
sed -i 's@|| defined(__i386__)@|| defined(__x86_64__) || defined(__i386__)@' stund/stun.cxx
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/{bin,man/man8,man/man1}
|
||||
cp client $out/bin/stun
|
||||
cp server $out/bin/stund
|
||||
cp debian/manpages/stund.8 $out/man/man8
|
||||
cp debian/manpages/stun.1 $out/man/man1
|
||||
'';
|
||||
|
||||
patches = fetchurl {
|
||||
url = mirror://debian/pool/main/s/stun/stun_0.96.dfsg-5.diff.gz;
|
||||
sha256 = "0a6iig58zykdab89b99v1w4fn3gf2d8wz9c01vx2zvlg22gyji0l";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "stun server and test client";
|
||||
longDescription = "eg useful to debug voip trouble";
|
||||
homepage = http://sourceforge.net/projects/stun/;
|
||||
license = "Vovida 1.0"; # See any header file.
|
||||
maintainers = [args.lib.maintainers.marcweber];
|
||||
platforms = args.lib.platforms.linux;
|
||||
};
|
||||
}
|
|
@ -1488,6 +1488,10 @@ let
|
|||
inherit builderDefs gmp;
|
||||
};
|
||||
|
||||
stun = import ../tools/networking/stun {
|
||||
inherit fetchurl stdenv lib;
|
||||
};
|
||||
|
||||
stunnel = import ../tools/networking/stunnel {
|
||||
inherit fetchurl stdenv openssl;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue