Unverified Commit 3c60db38 authored by Maciej Krüger's avatar Maciej Krüger Committed by GitHub
Browse files

Merge pull request #285376 from oliver-koss/ardopc

ardopc: init at 2021-08-28
parents 59ff15c9 e656d228
Loading
Loading
Loading
Loading
+51 −0
Original line number Diff line number Diff line
{ fetchFromGitHub
, lib
, makeWrapper
, pkg-config
, stdenv
, alsa-lib
, flrig
, hamlib
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "ardopc";
  version = "unstable-2021-08-28";

  src = fetchFromGitHub {
    owner = "hamarituc";
    repo = "ardop";
    rev = "20210828";
    hash = "sha256-OUw9spFTsQLnsXksbfl3wD2NyY40JTyvlvONEIeZyWo=";
  };

  sourceRoot = "${finalAttrs.src.name}/ARDOPC";

  nativeBuildInputs = [
    makeWrapper
    pkg-config
  ];

  buildInputs = [
    alsa-lib
    flrig
    hamlib
  ];

  installPhase = ''
    runHook preInstall

    install -D ardopc $out/bin/ardopc

    runHook postInstall
  '';

  meta = with lib; {
    description = "ARDOP (Amateur Radio Digital Open Protocol) TNC implementation by John Wiseman (GM8BPQ)";
    homepage = "https://github.com/hamarituc/ardop/ARDOPC";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ oliver-koss ];
    mainProgram = "ardopc";
    platforms = platforms.all;
  };
})