diff options
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/networking/ddclient/default.nix | 6 | ||||
-rw-r--r-- | pkgs/tools/networking/ytcc/default.nix | 25 |
2 files changed, 29 insertions, 2 deletions
diff --git a/pkgs/tools/networking/ddclient/default.nix b/pkgs/tools/networking/ddclient/default.nix index 0a44adbbec2d..20a22723c7fa 100644 --- a/pkgs/tools/networking/ddclient/default.nix +++ b/pkgs/tools/networking/ddclient/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, perlPackages, iproute }: +{ stdenv, fetchurl, perlPackages, iproute, perl }: perlPackages.buildPerlPackage rec { name = "ddclient-${version}"; @@ -20,7 +20,9 @@ perlPackages.buildPerlPackage rec { substituteInPlace ddclient \ --replace 'in the output of ifconfig' 'in the output of ip addr show' \ --replace 'ifconfig -a' '${iproute}/sbin/ip addr show' \ - --replace 'ifconfig $arg' '${iproute}/sbin/ip addr show $arg' + --replace 'ifconfig $arg' '${iproute}/sbin/ip addr show $arg' \ + # Until we get the patchShebangs fixed (issue #55786) we need to patch this manually + --replace '/usr/bin/perl' '${perl}/bin/perl' ''; installPhase = '' diff --git a/pkgs/tools/networking/ytcc/default.nix b/pkgs/tools/networking/ytcc/default.nix new file mode 100644 index 000000000000..137a9216df00 --- /dev/null +++ b/pkgs/tools/networking/ytcc/default.nix @@ -0,0 +1,25 @@ +{ lib, python3Packages, fetchFromGitHub, gettext }: + +python3Packages.buildPythonApplication rec { + pname = "ytcc"; + version = "1.8.1"; + + src = fetchFromGitHub { + owner = "woefe"; + repo = "ytcc"; + rev = "v${version}"; + sha256 = "080p145j5pg8db88kb0y3x1pfc3v4aj3w68pdihlmi68dhjdr7i7"; + }; + + doCheck = false; # try to access /homeless-shelter + propagatedBuildInputs = with python3Packages; [ feedparser lxml sqlalchemy youtube-dl ]; + + nativeBuildInputs = [ gettext ]; + + meta = { + description = "Command Line tool to keep track of your favourite YouTube channels without signing up for a Google account"; + homepage = "https://github.com/woefe/ytcc"; + license = lib.licenses.gpl3; + maintainers = with lib.maintainers; [ marius851000 ]; + }; +} |