nixpkgs/pkgs/applications/misc/direwolf/default.nix

44 lines
917 B
Nix
Raw Normal View History

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