3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/feedreaders/castget/default.nix

53 lines
1.4 KiB
Nix
Raw Normal View History

2019-08-20 17:40:23 +01:00
{ lib, stdenv, fetchFromGitHub
, autoreconfHook
, pkg-config
2019-08-20 17:40:23 +01:00
, glib
, ronn
, curl
, id3lib
, libxml2
2019-10-25 13:23:52 +01:00
, glibcLocales
2019-08-20 17:40:23 +01:00
}:
stdenv.mkDerivation rec {
pname = "castget";
2019-10-25 13:23:52 +01:00
version = "2.0.0";
2019-08-20 17:40:23 +01:00
src = fetchFromGitHub {
owner = "mlj";
repo = pname;
2019-10-25 13:23:52 +01:00
# Upstream uses `_` instead of `.` for the version
2019-08-20 17:40:23 +01:00
rev = "rel_${lib.replaceStrings ["."] ["_"] version}";
2019-10-25 13:23:52 +01:00
sha256 = "1129x64rw587q3sdpa3lrgs0gni5f0siwbvmfz8ya4zkbhgi2ik7";
2019-08-20 17:40:23 +01:00
};
2019-10-25 13:23:52 +01: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 17:40:23 +01:00
'';
buildInputs = [ glib curl id3lib libxml2 ];
2019-10-25 13:23:52 +01:00
nativeBuildInputs = [
ronn
# See comment on locale above
glibcLocales
autoreconfHook
pkg-config
2019-10-25 13:23:52 +01:00
];
2019-08-20 17:40:23 +01:00
meta = with lib; {
2019-08-20 17:40:23 +01:00
description = "A simple, command-line based RSS enclosure downloader";
longDescription = ''
castget is a simple, command-line based RSS enclosure downloader. It is
primarily intended for automatic, unattended downloading of podcasts.
'';
homepage = "https://castget.johndal.com/";
2019-08-20 17:40:23 +01:00
maintainers = with maintainers; [ doronbehar ];
license = licenses.gpl2;
platforms = platforms.linux;
};
}