nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

hashdeep: fix darwin build

+6 -4
+6 -4
pkgs/tools/security/hashdeep/default.nix
··· 20 20 url = "https://github.com/jessek/hashdeep/commit/6ef69a26126ee4e69a25392fd456b8a66c51dffd.patch"; 21 21 sha256 = "sha256-IrqcnrKINeoh56FR25FzSM1YJMkM2yFd/GwOeWGRLFo="; 22 22 }) 23 + (fetchpatch { 24 + # Fix the spacing between the string literals and macros, see https://github.com/jessek/hashdeep/pull/385 25 + name = "string-literal-spacing.patch"; 26 + url = "https://github.com/jessek/hashdeep/commit/18a6b5d57f7a648d2b7dcc6e50ff00a1e4b05fcc.patch"; 27 + sha256 = "sha256-S6hzC8jPtG3ozsvVq5JfAUMwqKxytLGwBAtNYNr6RJ0="; 28 + }) 23 29 ]; 24 30 25 31 nativeBuildInputs = [ autoreconfHook ]; ··· 36 30 license = licenses.gpl2; 37 31 maintainers = [ maintainers.karantan ]; 38 32 platforms = platforms.all; 39 - # Build fails on Darwin: 40 - # > ./xml.h:103:82: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] 41 - # > void xmlout(const std::string &tag,const int64_t value){ xmlprintf(tag,"","%"PRId64,value); } 42 - broken = stdenv.isDarwin; 43 33 }; 44 34 }