zrepl: fix build with go 1.18

This commit is contained in:
zowoq 2022-10-01 13:23:28 +10:00
parent bd6329dd11
commit 4f647e91a8
2 changed files with 11 additions and 5 deletions

View file

@ -4,6 +4,7 @@
, makeWrapper
, nixosTests
, openssh
, fetchpatch
}:
buildGoModule rec {
pname = "zrepl";
@ -16,7 +17,15 @@ buildGoModule rec {
sha256 = "4q/wwlF11HPDS2lTXUizJ3RFQ9sX5qNnWZUKAgnvDiE=";
};
vendorSha256 = "xToq9pKAxxknh4kE8S3uUg5ySPMbJkLftkMhofNxotc=";
patches = [
# fix build with go 1.18
(fetchpatch {
url = "https://github.com/zrepl/zrepl/commit/19b2deb2cfe5e63b944fa83d12f474b11946ca3f.patch";
sha256 = "sha256-/SQhU1LnN2n4nwgWF6mq7sW2u52y8mwr6yntakAvSuk=";
})
];
vendorSha256 = "sha256-xToq9pKAxxknh4kE8S3uUg5ySPMbJkLftkMhofNxotc=";
subPackages = [ "." ];

View file

@ -37210,10 +37210,7 @@ with pkgs;
zfs-replicate = python3Packages.callPackage ../tools/backup/zfs-replicate { };
zrepl = callPackage ../tools/backup/zrepl {
# pinned due to build failure or vendoring problems. When unpinning double check with: nix-build -A $name.go-modules --rebuild
buildGoModule = buildGo117Module;
};
zrepl = callPackage ../tools/backup/zrepl { };
uhubctl = callPackage ../tools/misc/uhubctl {};