uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
45
pkgs/tools/networking/stuntman/default.nix
Normal file
45
pkgs/tools/networking/stuntman/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ stdenv, lib, fetchFromGitHub, openssl, boost }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "stuntman";
|
||||
version = "1.2.16";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jselbie";
|
||||
repo = "stunserver";
|
||||
rev = "cfadf9c3836d5ae63a682913de24ba085df924f3";
|
||||
sha256 = "1gcx4zj44f0viddnn5klkmq0dgd29av5p06iyf9f1va4a3lk0cbg";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
boost
|
||||
openssl
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
mv stunserver $out/bin/
|
||||
mv stunclient $out/bin/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
./stuntestcode
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "STUNTMAN - an open source STUN server and client";
|
||||
homepage = "http://www.stunprotocol.org/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ mattchrist ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue