Skip to content

Commit edde196

Browse files
twitch-dl: use writableTmpDirAsHomeHook (#398906)
2 parents 244a352 + d908f95 commit edde196

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkgs/by-name/tw/twitch-dl/package.nix

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
installShellFiles,
66
scdoc,
77
ffmpeg,
8+
writableTmpDirAsHomeHook,
89
}:
910

1011
python3Packages.buildPythonApplication rec {
@@ -38,6 +39,7 @@ python3Packages.buildPythonApplication rec {
3839

3940
nativeCheckInputs = [
4041
python3Packages.pytestCheckHook
42+
writableTmpDirAsHomeHook
4143
];
4244

4345
disabledTestPaths = [
@@ -72,10 +74,6 @@ python3Packages.buildPythonApplication rec {
7274
installManPage twitch-dl.1
7375
'';
7476

75-
preInstallCheck = ''
76-
export HOME="$(mktemp -d)"
77-
'';
78-
7977
meta = with lib; {
8078
description = "CLI tool for downloading videos from Twitch";
8179
homepage = "https://github.com/ihabunek/twitch-dl";

0 commit comments

Comments
 (0)