3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/radio/gnuradio/nacl.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake, pkg-config, boost, gnuradio, uhd
, makeWrapper, libsodium, cppunit, log4cpp
2015-11-04 14:42:01 +00:00
, pythonSupport ? true, python, swig
}:
assert pythonSupport -> python != null && swig != null;
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
pname = "gr-nacl";
version = "2017-04-10";
2015-11-04 14:42:01 +00:00
src = fetchFromGitHub {
owner = "stwunsch";
repo = "gr-nacl";
rev = "15276bb0fcabf5fe4de4e58df3d579b5be0e9765";
sha256 = "018np0qlk61l7mlv3xxx5cj1rax8f1vqrsrch3higsl25yydbv7v";
2015-11-04 14:42:01 +00:00
};
nativeBuildInputs = [ cmake pkg-config ];
2015-11-04 14:42:01 +00:00
buildInputs = [
boost gnuradio uhd makeWrapper libsodium cppunit log4cpp
2015-11-04 14:42:01 +00:00
] ++ stdenv.lib.optionals pythonSupport [ python swig ];
postInstall = ''
for prog in "$out"/bin/*; do
wrapProgram "$prog" --set PYTHONPATH $PYTHONPATH:$(toPythonPath "$out")
done
'';
meta = with stdenv.lib; {
description = "Gnuradio block for encryption";
homepage = "https://github.com/stwunsch/gr-nacl";
2015-11-04 14:42:01 +00:00
license = licenses.gpl3Plus;
platforms = platforms.linux ++ platforms.darwin;
2015-11-04 14:42:01 +00:00
maintainers = with maintainers; [ mog ];
};
}