2017-03-20 02:02:01 +00:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, espeak, alsaLib, perl
|
|
|
|
, python }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
2015-07-27 15:52:50 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "direwolf";
|
2017-08-29 13:08:17 +01:00
|
|
|
version = "1.4";
|
2015-07-27 15:52:50 +01:00
|
|
|
|
2016-01-22 12:22:49 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wb2osz";
|
|
|
|
repo = "direwolf";
|
2017-03-20 02:02:01 +00:00
|
|
|
rev = version;
|
2017-08-29 13:08:17 +01:00
|
|
|
sha256 = "033sffjs2dz48077hc58jr4lxxs8md1fyfh4lig6ib7pyigiv1y0";
|
2015-07-27 15:52:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2017-03-20 02:02:01 +00:00
|
|
|
espeak perl python
|
|
|
|
] ++ (optional stdenv.isLinux alsaLib);
|
2015-07-27 15:52:50 +01:00
|
|
|
|
2017-08-29 13:08:17 +01:00
|
|
|
postPatch = ''
|
|
|
|
for i in Makefile.*; do
|
|
|
|
substituteInPlace "$i" \
|
|
|
|
--replace /usr/share $out/share
|
|
|
|
done
|
2017-03-20 02:02:01 +00:00
|
|
|
|
2017-08-29 13:08:17 +01:00
|
|
|
substituteInPlace dwespeak.sh \
|
|
|
|
--replace espeak ${espeak}/bin/espeak
|
|
|
|
'';
|
2015-07-27 15:52:50 +01:00
|
|
|
|
2017-08-29 13:08:17 +01:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
|
|
|
installFlags = [ "INSTALLDIR=$(out)" ];
|
2015-07-27 15:52:50 +01:00
|
|
|
|
2017-03-20 02:02:01 +00:00
|
|
|
meta = {
|
2016-02-27 17:24:00 +00:00
|
|
|
description = "A Soundcard Packet TNC, APRS Digipeater, IGate, APRStt gateway";
|
2017-03-20 02:02:01 +00:00
|
|
|
homepage = https://github.com/wb2osz/direwolf/;
|
2015-07-27 15:52:50 +01:00
|
|
|
license = licenses.gpl2;
|
2017-03-20 02:02:01 +00:00
|
|
|
platforms = platforms.unix;
|
2015-07-27 15:52:50 +01:00
|
|
|
maintainers = [ maintainers.the-kenny ];
|
|
|
|
};
|
|
|
|
}
|