Merge pull request #71982 from doronbehar/update-castget

castget: 1.2.4 -> 2.0.0
This commit is contained in:
Alexey Shmalko 2019-10-26 14:22:21 +03:00 committed by GitHub
commit 3718d27126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,29 +6,37 @@
, curl , curl
, id3lib , id3lib
, libxml2 , libxml2
, glibcLocales
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "castget"; pname = "castget";
version = "1.2.4"; version = "2.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mlj"; owner = "mlj";
repo = pname; repo = pname;
# Upstream uses `_` instead of `.` for the version, let's hope it will # Upstream uses `_` instead of `.` for the version
# change in the next release
rev = "rel_${lib.replaceStrings ["."] ["_"] version}"; rev = "rel_${lib.replaceStrings ["."] ["_"] version}";
sha256 = "1pfrjmsikv35cc0praxgim26zq4r7dfp1pkn6n9fz3fm73gxylyv"; sha256 = "1129x64rw587q3sdpa3lrgs0gni5f0siwbvmfz8ya4zkbhgi2ik7";
}; };
# Otherwise, the autoreconfHook fails since Makefile.am requires it
preAutoreconf = '' # without this, the build fails because of an encoding issue with the manual page.
touch NEWS # https://stackoverflow.com/a/17031697/4935114
touch README # This requires glibcLocales to be present in the build so it will have an impact.
touch ChangeLog # See https://github.com/NixOS/nixpkgs/issues/8398
preBuild = ''
export LC_ALL="en_US.UTF-8";
''; '';
buildInputs = [ glib curl id3lib libxml2 ]; buildInputs = [ glib curl id3lib libxml2 ];
nativeBuildInputs = [ ronn autoreconfHook pkgconfig ]; nativeBuildInputs = [
ronn
# See comment on locale above
glibcLocales
autoreconfHook
pkgconfig
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A simple, command-line based RSS enclosure downloader"; description = "A simple, command-line based RSS enclosure downloader";