1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00

direwolf: 1.3 -> 1.4

This commit is contained in:
Jörg Thalheim 2017-08-29 13:08:17 +01:00
parent d881b024d4
commit e9648952dc

View file

@ -6,35 +6,36 @@ with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "direwolf-${version}"; name = "direwolf-${version}";
version = "1.3"; version = "1.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "wb2osz"; owner = "wb2osz";
repo = "direwolf"; repo = "direwolf";
rev = version; rev = version;
sha256 = "1x6vvl3fy70ic5pqvqsyr0bkqwim8m9jaqnm5ls8z8i66rwq23fg"; sha256 = "033sffjs2dz48077hc58jr4lxxs8md1fyfh4lig6ib7pyigiv1y0";
}; };
buildInputs = [ buildInputs = [
espeak perl python espeak perl python
] ++ (optional stdenv.isLinux alsaLib); ] ++ (optional stdenv.isLinux alsaLib);
patchPhase = '' postPatch = ''
substituteInPlace Makefile.* \ for i in Makefile.*; do
substituteInPlace "$i" \
--replace /usr/share $out/share --replace /usr/share $out/share
done
substituteInPlace dwespeak.sh \ substituteInPlace dwespeak.sh \
--replace espeak ${espeak}/bin/espeak --replace espeak ${espeak}/bin/espeak
''; '';
installPhase = '' preInstall = ''
mkdir -p $out/bin mkdir -p $out/bin
make INSTALLDIR=$out install
''; '';
installFlags = [ "INSTALLDIR=$(out)" ];
meta = { meta = {
description = "A Soundcard Packet TNC, APRS Digipeater, IGate, APRStt gateway"; 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/; homepage = https://github.com/wb2osz/direwolf/;
license = licenses.gpl2; license = licenses.gpl2;
platforms = platforms.unix; platforms = platforms.unix;