nixpkgs/pkgs/by-name/ca/castget/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

56 lines
1.3 KiB
Nix

{ lib
, stdenv
, fetchurl
, pkg-config
, glib
, ronn
, curl
, id3lib
, libxml2
, glibcLocales
}:
stdenv.mkDerivation (finalAttrs: {
pname = "castget";
version = "2.0.1";
src = fetchurl {
url = "http://savannah.nongnu.org/download/castget/castget-${finalAttrs.version}.tar.bz2";
hash = "sha256-Q4tffsfjGkXtN1ZjD+RH9CAVrNpT7AkgL0hihya16HU=";
};
# 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";
'';
buildInputs = [
glib
curl
id3lib
libxml2
];
nativeBuildInputs = [
ronn
# See comment on locale above
glibcLocales
pkg-config
];
meta = with lib; {
description = "Simple, command-line based RSS enclosure downloader";
mainProgram = "castget";
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/";
maintainers = with maintainers; [ doronbehar ];
license = licenses.gpl2;
platforms = platforms.linux;
};
})