2021-04-26 19:14:03 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "podgrab";
|
|
|
|
version = "unstable-2021-04-14";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "akhilrex";
|
|
|
|
repo = pname;
|
|
|
|
rev = "3179a875b8b638fb86d0e829d12a9761c1cd7f90";
|
|
|
|
sha256 = "sha256-vhxIm20ZUi+RusrAsSY54tv/D570/oMO5qLz9dNqgqo=";
|
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-xY9xNuJhkWPgtqA/FBVIp7GuWOv+3nrz6l3vaZVLlIE=";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/
|
|
|
|
cp -r $src/client $out/share/
|
|
|
|
cp -r $src/webassets $out/share/
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests = { inherit (nixosTests) podgrab; };
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Self-hosted podcast manager to download episodes as soon as they become live";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "podgrab";
|
2021-04-26 19:14:03 +00:00
|
|
|
homepage = "https://github.com/akhilrex/podgrab";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
|
|
};
|
|
|
|
}
|