This commit is contained in:
parent
764e63292d
commit
71ccccf88d
1 changed files with 8 additions and 7 deletions
15
flake.nix
15
flake.nix
|
@ -46,9 +46,9 @@
|
|||
hash = hash;
|
||||
};
|
||||
|
||||
env = {
|
||||
RESTIC_TEST_FUSE = "false";
|
||||
};
|
||||
# env = {
|
||||
# RESTIC_TEST_FUSE = "false";
|
||||
# };
|
||||
|
||||
patches = [
|
||||
# The TestRestoreWithPermissionFailure test fails in Nix's build sandbox
|
||||
|
@ -62,10 +62,12 @@
|
|||
pkgs.makeWrapper
|
||||
];
|
||||
|
||||
nativeCheckInputs = [pkgs.python3];
|
||||
|
||||
passthru.tests.restic = pkgs.nixosTests.restic;
|
||||
|
||||
postPatch = ''
|
||||
# rm cmd/restic/integration_fuse_test.go
|
||||
rm cmd/restic/cmd_mount_integration_test.go
|
||||
'';
|
||||
|
||||
postInstall =
|
||||
|
@ -113,7 +115,7 @@
|
|||
"--rclone"
|
||||
"${pkgs.rclone}/bin/rclone"
|
||||
"--restic"
|
||||
"${pkgs-unstable.restic}/bin/restic"
|
||||
"${self.packages.${pkgs.system}.restic}/bin/restic"
|
||||
"--cache-dir"
|
||||
"/cache"
|
||||
];
|
||||
|
@ -136,11 +138,10 @@
|
|||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
pkgs-unstable,
|
||||
...
|
||||
}: let
|
||||
cfg = config.restic;
|
||||
package = pkgs-unstable.restic;
|
||||
package = self.packages.${pkgs.system}.restic;
|
||||
in {
|
||||
options = {
|
||||
restic = lib.options.mkOption {
|
||||
|
|
Loading…
Reference in a new issue