sampler: fix build with go 1.17

This commit is contained in:
ajs124 2022-04-13 13:02:35 +01:00 committed by Jörg Thalheim
parent 07e0094749
commit ceebedb1db
No known key found for this signature in database
2 changed files with 11 additions and 5 deletions

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, darwin, libiconv, alsa-lib, stdenv }:
{ lib, buildGoModule, fetchFromGitHub, fetchpatch, darwin, libiconv, alsa-lib, stdenv }:
buildGoModule rec {
pname = "sampler";
@ -11,7 +11,15 @@ buildGoModule rec {
sha256 = "1lanighxhnn28dfzils7i55zgxbw2abd6y723mq7x9wg1aa2bd0z";
};
vendorSha256 = "04nywhkil5xkipcibrp6vi63rfcvqgv7yxbxmmrhqys2cdxfvazv";
patches = [
# fix build with go 1.17
(fetchpatch {
url = "https://github.com/sqshq/sampler/commit/97a4a0ebe396a780d62f50f112a99b27044e832b.patch";
sha256 = "1czns7jc85mzdf1mg874jimls8x32l35x3lysxfgfah7cvvwznbk";
})
];
vendorSha256 = "02cfzqadpsk2vkzsp7ciji9wisjza0yp35pw42q44navhbzcb4ji";
doCheck = false;

View File

@ -22531,9 +22531,7 @@ with pkgs;
sambaFull = samba4Full;
sampler = callPackage ../applications/misc/sampler {
buildGoModule = buildGo116Module;
};
sampler = callPackage ../applications/misc/sampler { };
shairplay = callPackage ../servers/shairplay { avahi = avahi-compat; };