nixpkgs/pkgs/tools/misc/you-get/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.1 KiB
Nix
Raw Normal View History

2022-06-01 01:05:35 +00:00
{ lib
, python3
, substituteAll
, ffmpeg
, installShellFiles
}:
2018-01-26 03:05:32 +00:00
2022-06-01 01:05:35 +00:00
python3.pkgs.buildPythonApplication rec {
2018-01-26 03:05:32 +00:00
pname = "you-get";
2022-05-31 23:44:33 +00:00
version = "0.4.1612";
2018-01-26 03:05:32 +00:00
# Tests aren't packaged, but they all hit the real network so
# probably aren't suitable for a build environment anyway.
doCheck = false;
2022-06-01 01:05:35 +00:00
src = python3.pkgs.fetchPypi {
2018-01-26 03:05:32 +00:00
inherit pname version;
2022-05-31 23:44:33 +00:00
sha256 = "sha256-lKEztwwn1pnALuwDiA1Ik9+XCVyO+UMobv+hXu0mn5w=";
2018-01-26 03:05:32 +00:00
};
2022-06-01 01:05:35 +00:00
patches = [
(substituteAll {
src = ./ffmpeg-path.patch;
ffmpeg = "${lib.getBin ffmpeg}/bin/ffmpeg";
ffprobe = "${lib.getBin ffmpeg}/bin/ffmpeg";
version = lib.getVersion ffmpeg;
})
];
2021-11-15 15:30:00 +00:00
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd you-get \
--zsh contrib/completion/_you-get \
--fish contrib/completion/you-get.fish \
--bash contrib/completion/you-get-completion.bash
'';
meta = with lib; {
2018-01-26 03:05:32 +00:00
description = "A tiny command line utility to download media contents from the web";
2020-03-10 02:57:43 +00:00
homepage = "https://you-get.org";
2018-01-26 03:05:32 +00:00
license = licenses.mit;
maintainers = with maintainers; [ ryneeverett ];
};
}