git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #100452 from bbigras/restic

restic: 0.9.6 -> 0.10.0

commitfb9a2e7c9b992b8b22dd1b81cafeff3ffc559bb1 authorAnderson Torres <torres.anderson.85@protonmail.com> dateTue 20 Oct 2020, 14:41 (6 years ago) parentbd017765a0b194
1 file changed+10−6
pkgs/tools/backup/restic/default.nix+10−6
pkgs/tools/backup/restic/default.nix+10−6
@@ -1,25 +1,29 @@
1−{ stdenv, lib, buildGoPackage, fetchFromGitHub, installShellFiles, makeWrapper
1+{ stdenv, lib, buildGoModule, fetchFromGitHub, installShellFiles, makeWrapper
22, nixosTests, rclone }:
33
4−buildGoPackage rec {
4+buildGoModule rec {
55 pname = "restic";
6− version = "0.9.6";
7−
8− goPackagePath = "github.com/restic/restic";
6+ version = "0.10.0";
97
108 src = fetchFromGitHub {
119 owner = "restic";
1210 repo = "restic";
1311 rev = "v${version}";
14− sha256 = "0lydll93n1lcn1fl669b9cikmzz9d6vfpc8ky3ng5fi8kj3v1dz7";
12+ sha256 = "0nrh52cjymzcf093sqqa3kfw2nimnx6qwn8aw0wsci2v2r84yzzx";
1513 };
1614
15+ vendorSha256 = "1pfixq3mbfn12gyablc4g0j8r00md3887q0l8xgxy76z0d8w924s";
16+
1717 subPackages = [ "cmd/restic" ];
1818
1919 nativeBuildInputs = [ installShellFiles makeWrapper ];
2020
2121 passthru.tests.restic = nixosTests.restic;
2222
23+ postPatch = ''
24+ rm cmd/restic/integration_fuse_test.go
25+ '';
26+
2327 postInstall = ''
2428 wrapProgram $out/bin/restic --prefix PATH : '${rclone}/bin'
2529 '' + lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''