6 enableShared ? !stdenv.hostPlatform.isStatic,
9 stdenv.mkDerivation rec {
13 src = fetchFromGitHub {
17 sha256 = "147i3md3nxkjlrccqg4mq1kyzc7yrhvqv5902iibc7znkvzdvlp0";
20 nativeBuildInputs = [ cmake ];
22 # This isn't used by the build and breaks the CMake build on case-insensitive filesystems (e.g., on Darwin)
23 preConfigure = "rm BUILD";
26 "-DGFLAGS_BUILD_SHARED_LIBS=${if enableShared then "ON" else "OFF"}"
27 "-DGFLAGS_BUILD_STATIC_LIBS=ON"
33 description = "C++ library that implements commandline flags processing";
34 mainProgram = "gflags_completions.sh";
36 The gflags package contains a C++ library that implements commandline flags processing.
37 As such it's a replacement for getopt().
38 It was owned by Google. google-gflags project has been renamed to gflags and maintained by new community.
40 homepage = "https://gflags.github.io/gflags/";
41 license = licenses.bsd3;
42 maintainers = [ maintainers.linquize ];
43 platforms = platforms.all;