mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 01:24:47 +00:00
backrest: fix darwin build (#345546)
This commit is contained in:
commit
2a80ade2ee
@ -5,6 +5,7 @@
|
|||||||
lib,
|
lib,
|
||||||
restic,
|
restic,
|
||||||
util-linux,
|
util-linux,
|
||||||
|
stdenv,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
pname = "backrest";
|
pname = "backrest";
|
||||||
@ -44,8 +45,17 @@ buildGoModule {
|
|||||||
|
|
||||||
nativeCheckInputs = [ util-linux ];
|
nativeCheckInputs = [ util-linux ];
|
||||||
|
|
||||||
# Fails with handler returned wrong content encoding
|
checkFlags =
|
||||||
checkFlags = [ "-skip=TestServeIndex" ];
|
let
|
||||||
|
skippedTests =
|
||||||
|
[
|
||||||
|
"TestServeIndex" # Fails with handler returned wrong content encoding
|
||||||
|
]
|
||||||
|
++ lib.optionals stdenv.isDarwin [
|
||||||
|
"TestBackup" # relies on ionice
|
||||||
|
];
|
||||||
|
in
|
||||||
|
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
# Use restic from nixpkgs, otherwise download fails in sandbox
|
# Use restic from nixpkgs, otherwise download fails in sandbox
|
||||||
|
Loading…
Reference in New Issue
Block a user