2017-03-20 03:02:01 +01:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, espeak, alsaLib, perl
|
|
|
|
, python }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
2015-07-27 16:52:50 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "direwolf-${version}";
|
2017-03-20 03:02:01 +01:00
|
|
|
version = "1.3";
|
2015-07-27 16:52:50 +02:00
|
|
|
|
2016-01-22 13:22:49 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wb2osz";
|
|
|
|
repo = "direwolf";
|
2017-03-20 03:02:01 +01:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1x6vvl3fy70ic5pqvqsyr0bkqwim8m9jaqnm5ls8z8i66rwq23fg";
|
2015-07-27 16:52:50 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2017-03-20 03:02:01 +01:00
|
|
|
espeak perl python
|
|
|
|
] ++ (optional stdenv.isLinux alsaLib);
|
2015-07-27 16:52:50 +02:00
|
|
|
|
|
|
|
patchPhase = ''
|
2017-03-20 03:02:01 +01:00
|
|
|
substituteInPlace Makefile.* \
|
|
|
|
--replace /usr/share $out/share
|
|
|
|
|
|
|
|
substituteInPlace dwespeak.sh \
|
|
|
|
--replace espeak ${espeak}/bin/espeak
|
|
|
|
'';
|
2015-07-27 16:52:50 +02:00
|
|
|
|
2017-03-20 03:02:01 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
make INSTALLDIR=$out install
|
|
|
|
'';
|
2015-07-27 16:52:50 +02:00
|
|
|
|
2017-03-20 03:02:01 +01:00
|
|
|
meta = {
|
2016-02-27 18:24:00 +01:00
|
|
|
description = "A Soundcard Packet TNC, APRS Digipeater, IGate, APRStt gateway";
|
2015-07-27 16:52:50 +02:00
|
|
|
# On the page: This page will be disappearing on October 8, 2015.
|
2017-03-20 03:02:01 +01:00
|
|
|
homepage = https://github.com/wb2osz/direwolf/;
|
2015-07-27 16:52:50 +02:00
|
|
|
license = licenses.gpl2;
|
2017-03-20 03:02:01 +01:00
|
|
|
platforms = platforms.unix;
|
2015-07-27 16:52:50 +02:00
|
|
|
maintainers = [ maintainers.the-kenny ];
|
|
|
|
};
|
|
|
|
}
|