Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

gflags: build on case-insensitive FSs, add meta

Darwin machines come with a case-insensitive filesystem by default. The
gflags package's source contains a file 'BUILD' and the build process
attempts to create a directory called 'build', which fails on
case-insensitive filesystems.

Add a prePatch hook to rename the BUILD file (which is for use with an
unrelated build tool) to something that doesn't conflict with the
'build' directory. This hook allows this derivation to be built on
case-insensitive filesystems.

Add metadata to the derivation because previously it had none.

(cherry picked from commit 66bbee3b81271cfb6ffff6d350c02d7158255778)

authored by

Dan Lidral-Porter and committed by
Daiderd Jordan
021ee7d9 b8edfed0

+9
+9
pkgs/development/libraries/gflags/default.nix
··· 7 sha256 = "03lxc2ah8i392kh1naq99iip34k4fpv22kwflyx3byd2ssycs9xf"; 8 }; 9 nativeBuildInputs = [ cmake ]; 10 }
··· 7 sha256 = "03lxc2ah8i392kh1naq99iip34k4fpv22kwflyx3byd2ssycs9xf"; 8 }; 9 nativeBuildInputs = [ cmake ]; 10 + # for case-insensitive filesystems 11 + prePatch = "mv BUILD BUILD.bazel"; 12 + 13 + meta = with stdenv.lib; { 14 + description = "C++ library that implements commandline flags processing"; 15 + homepage = "https://github.com/gflags/gflags"; 16 + license = licenses.bsd3; 17 + platforms = platforms.unix; 18 + }; 19 }