From 71ccccf88d9147f86563154766bbdfb37f5e2f32 Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Thu, 5 Sep 2024 17:22:36 -0500 Subject: [PATCH] update --- flake.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index 7011a43..e86917b 100644 --- a/flake.nix +++ b/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 {