compile-daemon: fix build on darwin

This commit is contained in:
Aaron Jheng 2022-11-11 12:12:07 +00:00
parent 48bc300bc0
commit 4935a0e63a
No known key found for this signature in database
GPG Key ID: F6A547A869D050A3

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
buildGoModule rec {
pname = "compile-daemon";
@ -11,7 +11,14 @@ buildGoModule rec {
sha256 = "sha256-gpyXy7FO7ZVXJrkzcKHFez4S/dGiijXfZ9eSJtNlm58=";
};
vendorSha256 = "sha256-UDPOeg8jQbDB+Fr4x6ehK7UyQa8ySZy6yNxS1xotkgA=";
vendorHash = "sha256-UpktrXY6OntOA1sxKq3qI59zrOwwCuM+gfGGxPmUJRo=";
patches = [
(fetchpatch {
url = "https://github.com/githubnemo/CompileDaemon/commit/39bc1352dc62fea06dff40c5eaef81ab1bdb1f14.patch";
hash = "sha256-Zftbw2nu8zzaoj0uwEwdq7xlyycdC0xxBu/qE9VHASI=";
})
];
ldflags = [ "-s" "-w" ];