mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
onionshare: use writableTmpDirAsHomeHook (#397348)
This commit is contained in:
commit
e04c75db33
1 changed files with 2 additions and 5 deletions
|
@ -15,6 +15,7 @@
|
||||||
versionCheckHook,
|
versionCheckHook,
|
||||||
gitUpdater,
|
gitUpdater,
|
||||||
onionshare-gui,
|
onionshare-gui,
|
||||||
|
writableTmpDirAsHomeHook,
|
||||||
}:
|
}:
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "onionshare-cli";
|
pname = "onionshare-cli";
|
||||||
|
@ -95,16 +96,12 @@ python3Packages.buildPythonApplication rec {
|
||||||
nativeCheckInputs =
|
nativeCheckInputs =
|
||||||
[
|
[
|
||||||
versionCheckHook
|
versionCheckHook
|
||||||
|
writableTmpDirAsHomeHook
|
||||||
]
|
]
|
||||||
++ (with python3Packages; [
|
++ (with python3Packages; [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
]);
|
]);
|
||||||
|
|
||||||
preCheck = ''
|
|
||||||
# Tests use the home directory
|
|
||||||
export HOME="$(mktemp -d)"
|
|
||||||
'';
|
|
||||||
|
|
||||||
disabledTests =
|
disabledTests =
|
||||||
lib.optionals stdenv.hostPlatform.isLinux [
|
lib.optionals stdenv.hostPlatform.isLinux [
|
||||||
"test_get_tor_paths_linux" # expects /usr instead of /nix/store
|
"test_get_tor_paths_linux" # expects /usr instead of /nix/store
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue