Skip to content

Commit

Permalink
direwolf: 1.3 -> 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Aug 29, 2017
1 parent d881b02 commit e964895
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions pkgs/applications/misc/direwolf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,36 @@ with stdenv.lib;

stdenv.mkDerivation rec {
name = "direwolf-${version}";
version = "1.3";
version = "1.4";

src = fetchFromGitHub {
owner = "wb2osz";
repo = "direwolf";
rev = version;
sha256 = "1x6vvl3fy70ic5pqvqsyr0bkqwim8m9jaqnm5ls8z8i66rwq23fg";
sha256 = "033sffjs2dz48077hc58jr4lxxs8md1fyfh4lig6ib7pyigiv1y0";
};

buildInputs = [
espeak perl python
] ++ (optional stdenv.isLinux alsaLib);

patchPhase = ''
substituteInPlace Makefile.* \
--replace /usr/share $out/share
postPatch = ''
for i in Makefile.*; do
substituteInPlace "$i" \
--replace /usr/share $out/share
done
substituteInPlace dwespeak.sh \
--replace espeak ${espeak}/bin/espeak
'';
substituteInPlace dwespeak.sh \
--replace espeak ${espeak}/bin/espeak
'';

installPhase = ''
mkdir -p $out/bin
make INSTALLDIR=$out install
'';
preInstall = ''
mkdir -p $out/bin
'';
installFlags = [ "INSTALLDIR=$(out)" ];

meta = {
description = "A Soundcard Packet TNC, APRS Digipeater, IGate, APRStt gateway";
# On the page: This page will be disappearing on October 8, 2015.
homepage = https://github.com/wb2osz/direwolf/;
license = licenses.gpl2;
platforms = platforms.unix;
Expand Down

0 comments on commit e964895

Please sign in to comment.