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;
|
hash = hash;
|
||||||
};
|
};
|
||||||
|
|
||||||
env = {
|
# env = {
|
||||||
RESTIC_TEST_FUSE = "false";
|
# RESTIC_TEST_FUSE = "false";
|
||||||
};
|
# };
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# The TestRestoreWithPermissionFailure test fails in Nix's build sandbox
|
# The TestRestoreWithPermissionFailure test fails in Nix's build sandbox
|
||||||
|
@ -62,10 +62,12 @@
|
||||||
pkgs.makeWrapper
|
pkgs.makeWrapper
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = [pkgs.python3];
|
||||||
|
|
||||||
passthru.tests.restic = pkgs.nixosTests.restic;
|
passthru.tests.restic = pkgs.nixosTests.restic;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# rm cmd/restic/integration_fuse_test.go
|
rm cmd/restic/cmd_mount_integration_test.go
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall =
|
postInstall =
|
||||||
|
@ -113,7 +115,7 @@
|
||||||
"--rclone"
|
"--rclone"
|
||||||
"${pkgs.rclone}/bin/rclone"
|
"${pkgs.rclone}/bin/rclone"
|
||||||
"--restic"
|
"--restic"
|
||||||
"${pkgs-unstable.restic}/bin/restic"
|
"${self.packages.${pkgs.system}.restic}/bin/restic"
|
||||||
"--cache-dir"
|
"--cache-dir"
|
||||||
"/cache"
|
"/cache"
|
||||||
];
|
];
|
||||||
|
@ -136,11 +138,10 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
pkgs-unstable,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.restic;
|
cfg = config.restic;
|
||||||
package = pkgs-unstable.restic;
|
package = self.packages.${pkgs.system}.restic;
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
restic = lib.options.mkOption {
|
restic = lib.options.mkOption {
|
||||||
|
|
Loading…
Reference in a new issue