direwolf: nixpkgs-fmt

This commit is contained in:
Robert James Hernandez 2023-09-29 16:32:59 +00:00
parent d90e8fdfb7
commit ba0d5f213b

View file

@ -1,7 +1,15 @@
{ lib, stdenv, fetchFromGitHub, cmake, alsa-lib, espeak, gpsd
, hamlib, perl, python3, udev }:
with lib;
{ lib
, stdenv
, fetchFromGitHub
, cmake
, alsa-lib
, gpsd
, hamlib
, perl
, python3
, espeak
, udev
}:
stdenv.mkDerivation rec {
pname = "direwolf";
@ -19,8 +27,12 @@ stdenv.mkDerivation rec {
strictDeps = true;
buildInputs = [
espeak gpsd hamlib perl python3
] ++ (optionals stdenv.isLinux [alsa-lib udev]);
espeak
gpsd
hamlib
perl
python3
] ++ (lib.optionals stdenv.isLinux [ alsa-lib udev ]);
postPatch = ''
substituteInPlace conf/CMakeLists.txt \
@ -41,7 +53,7 @@ stdenv.mkDerivation rec {
--replace 'GPSD_API_MAJOR_VERSION > 11' 'GPSD_API_MAJOR_VERSION > 14'
'';
meta = {
meta = with lib; {
description = "A Soundcard Packet TNC, APRS Digipeater, IGate, APRStt gateway";
homepage = "https://github.com/wb2osz/direwolf/";
license = licenses.gpl2;