lol
1{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
2
3stdenv.mkDerivation rec {
4 pname = "hashdeep";
5 version = "4.4";
6
7 src = fetchFromGitHub {
8 owner = "jessek";
9 repo = "hashdeep";
10 rev = "release-${version}";
11 sha256 = "0m2b042ndikavmplv3qjdhfj44hl1h8car83c192xi9nv5ahi7mf";
12 };
13
14 nativeBuildInputs = [ autoreconfHook ];
15
16 meta = with lib; {
17 description = "A set of cross-platform tools to compute hashes";
18 homepage = "https://github.com/jessek/hashdeep";
19 license = licenses.gpl2;
20 maintainers = [ maintainers.karantan ];
21 platforms = platforms.all;
22 # Build fails on Darwin:
23 # > ./xml.h:103:82: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
24 # > void xmlout(const std::string &tag,const int64_t value){ xmlprintf(tag,"","%"PRId64,value); }
25 broken = stdenv.isDarwin;
26 };
27}