restic-rest-server: 0.9.7 -> 0.10.0

authored by Robert Schütz and committed by zowoq c8d6ea69 a5ec4237

+7 -12
+7 -12
pkgs/tools/backup/restic/rest-server.nix
··· 1 - { lib, buildGoPackage, fetchFromGitHub }: 1 + { lib, buildGoModule, fetchFromGitHub }: 2 2 3 - buildGoPackage rec { 3 + buildGoModule rec { 4 4 pname = "restic-rest-server"; 5 - version = "0.9.7"; 6 - 7 - goPackagePath = "github.com/restic/rest-server"; 5 + version = "0.10.0"; 8 6 9 7 src = fetchFromGitHub { 10 8 owner = "restic"; 11 9 repo = "rest-server"; 12 10 rev = "v${version}"; 13 - sha256 = "1g47ly1pxwn0znbj3v5j6kqhn66d4wf0d5gjqzig75pzknapv8qj"; 11 + sha256 = "1msa6mah76zfif5wp0129jjk2jlq5ff38p9p6d241mw45i1xjfy7"; 14 12 }; 15 13 16 - buildPhase = '' 17 - cd go/src/${goPackagePath} 18 - go run build.go 19 - ''; 14 + vendorSha256 = "04w63sx7p0fm9xq0m7xab808az7lgw7i3p8basndszky8kgvxhmg"; 20 15 21 - installPhase = '' 22 - install -Dt $out/bin rest-server 16 + preCheck = '' 17 + substituteInPlace handlers_test.go --replace "TestJoin" "SkipTestJoin" 23 18 ''; 24 19 25 20 meta = with lib; {