afio: darwin build

+15 -6
+15 -6
pkgs/tools/archivers/afio/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub } : 1 + { lib, stdenv, fetchFromGitHub, fetchpatch } : 2 2 3 3 stdenv.mkDerivation rec { 4 4 version = "2.5.2"; ··· 11 11 sha256 = "1vbxl66r5rp5a1qssjrkfsjqjjgld1cq57c871gd0m4qiq9rmcfy"; 12 12 }; 13 13 14 - /* 15 - * A patch to simplify the installation and for removing the 16 - * hard coded dependency on GCC. 17 - */ 18 - patches = [ ./0001-makefile-fix-installation.patch ]; 14 + patches = [ 15 + /* 16 + * A patch to simplify the installation and for removing the 17 + * hard coded dependency on GCC. 18 + */ 19 + ./0001-makefile-fix-installation.patch 20 + 21 + # fix darwin build (include headers) 22 + (fetchpatch { 23 + url = "https://github.com/kholtman/afio/pull/18/commits/a726614f99913ced08f6ae74091c56969d5db210.patch"; 24 + name = "darwin-headers.patch"; 25 + hash = "sha256-pK8mN29fC2mL4B69Fv82dWFIQMGwquyl825OBDTxzpo="; 26 + }) 27 + ]; 19 28 20 29 installFlags = [ "DESTDIR=$(out)" ]; 21 30