Unverified Commit 3a015557 authored by Maximilian Bosch's avatar Maximilian Bosch Committed by GitHub
Browse files

Merge: podget: init at 1.0.0 (#418219)

parents 60c90e86 873f2407
Loading
Loading
Loading
Loading
+58 −0
Original line number Diff line number Diff line
{
  stdenvNoCC,
  lib,
  fetchFromGitHub,
  makeWrapper,
  installShellFiles,
  coreutils,
  findutils,
  gawk,
  iconv,
  wget,
}:
stdenvNoCC.mkDerivation rec {
  pname = "podget";
  version = "1.0.0";

  src = fetchFromGitHub {
    owner = "dvehrs";
    repo = "podget";
    tag = "V${version}";
    hash = "sha256-0I42UPWTdSzfRJodB1v3BNI5vwt8GRGpHR7eACoR9YQ=";
  };

  buildInputs = [
    coreutils
    findutils
    gawk
    iconv
    wget
  ];
  nativeBuildInputs = [
    makeWrapper
    installShellFiles
  ];
  installPhase = ''
    installManPage DOC/podget.7
    install -m 755 -D podget $out/bin/podget
    wrapProgram $out/bin/podget --prefix PATH : ${
      lib.makeBinPath [
        coreutils
        findutils
        gawk
        iconv
        wget
      ]
    }
  '';

  meta = {
    description = "Podcast aggregator optimized for running as a scheduled job (i.e. cron) on Linux";
    homepage = "https://github.com/dvehrs/podget";
    changelog = "https://github.com/dvehrs/podget/blob/dev/Changelog";
    license = lib.licenses.gpl3;
    platforms = lib.platforms.all;
    maintainers = with lib.maintainers; [ _9R ];
    mainProgram = "podget";
  };
}