halfempty: fix build on darwin

This commit is contained in:
Weijia Wang 2023-05-22 20:53:20 +03:00
parent fdd73b14e8
commit 1e923ee61f

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, glib, util-linux, scowl }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, glib, hexdump, scowl }:
stdenv.mkDerivation rec {
pname = "halfempty";
@ -11,9 +11,11 @@ stdenv.mkDerivation rec {
sha256 = "sha256-YGq6fneAMo2jCpLPrjzRJ0eeOsStKaK5L+lwQfqcfpY=";
};
nativeBuildInputs = [ pkg-config util-linux ];
nativeBuildInputs = [ pkg-config hexdump ];
buildInputs = [ glib ];
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
enableParallelBuilding = true;
patches = [
@ -41,5 +43,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/googleprojectzero/halfempty/";
maintainers = with lib.maintainers; [ fpletz ];
license = with lib.licenses; [ asl20 ];
platforms = lib.platforms.unix;
};
}