about summary refs log tree commit diff
path: root/pkgs/development/tools/halfempty
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-05-22 20:53:20 +0300
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-05-22 20:53:20 +0300
commit1e923ee61f2b4f6c821de291f38d187f79b89bab (patch)
tree69fa10c9f924b5d6339d048bc08193d8f2c90bf3 /pkgs/development/tools/halfempty
parentfdd73b14e8cc553aa913e9838ce143414399c4e6 (diff)
halfempty: fix build on darwin
Diffstat (limited to 'pkgs/development/tools/halfempty')
-rw-r--r--pkgs/development/tools/halfempty/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/tools/halfempty/default.nix b/pkgs/development/tools/halfempty/default.nix
index 35fdf7702a875..113647da9ff88 100644
--- a/pkgs/development/tools/halfempty/default.nix
+++ b/pkgs/development/tools/halfempty/default.nix
@@ -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;
   };
 }