2023-03-02 12:04:35 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2021-01-17 02:09:27 +00:00
|
|
|
, pkg-config
|
2019-08-20 16:40:23 +00:00
|
|
|
, glib
|
|
|
|
, ronn
|
|
|
|
, curl
|
|
|
|
, id3lib
|
|
|
|
, libxml2
|
2019-10-25 12:23:52 +00:00
|
|
|
, glibcLocales
|
2019-08-20 16:40:23 +00:00
|
|
|
}:
|
|
|
|
|
2023-09-21 08:31:17 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-20 16:40:23 +00:00
|
|
|
pname = "castget";
|
2023-03-02 12:04:35 +00:00
|
|
|
version = "2.0.1";
|
2019-08-20 16:40:23 +00:00
|
|
|
|
2023-03-02 12:04:35 +00:00
|
|
|
src = fetchurl {
|
2023-09-21 08:31:17 +00:00
|
|
|
url = "http://savannah.nongnu.org/download/castget/castget-${finalAttrs.version}.tar.bz2";
|
2023-03-02 12:04:35 +00:00
|
|
|
hash = "sha256-Q4tffsfjGkXtN1ZjD+RH9CAVrNpT7AkgL0hihya16HU=";
|
2019-08-20 16:40:23 +00:00
|
|
|
};
|
2019-10-25 12:23:52 +00:00
|
|
|
|
|
|
|
# without this, the build fails because of an encoding issue with the manual page.
|
|
|
|
# https://stackoverflow.com/a/17031697/4935114
|
|
|
|
# This requires glibcLocales to be present in the build so it will have an impact.
|
|
|
|
# See https://github.com/NixOS/nixpkgs/issues/8398
|
|
|
|
preBuild = ''
|
|
|
|
export LC_ALL="en_US.UTF-8";
|
2019-08-20 16:40:23 +00:00
|
|
|
'';
|
|
|
|
|
2023-03-02 12:12:45 +00:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
curl
|
|
|
|
id3lib
|
|
|
|
libxml2
|
|
|
|
];
|
2019-10-25 12:23:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
ronn
|
|
|
|
# See comment on locale above
|
|
|
|
glibcLocales
|
2021-01-17 02:09:27 +00:00
|
|
|
pkg-config
|
2019-10-25 12:23:52 +00:00
|
|
|
];
|
2019-08-20 16:40:23 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-08-20 16:40:23 +00:00
|
|
|
description = "Simple, command-line based RSS enclosure downloader";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "castget";
|
2019-08-20 16:40:23 +00:00
|
|
|
longDescription = ''
|
|
|
|
castget is a simple, command-line based RSS enclosure downloader. It is
|
|
|
|
primarily intended for automatic, unattended downloading of podcasts.
|
|
|
|
'';
|
2019-11-16 00:41:23 +00:00
|
|
|
homepage = "https://castget.johndal.com/";
|
2019-08-20 16:40:23 +00:00
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2023-09-21 08:31:17 +00:00
|
|
|
})
|