nixpkgs/pkgs/development/libraries/google-gflags/default.nix
R. RyanTM 0793294331 gflags: 2.2.1 -> 2.2.2
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/google-gflags/versions
2018-11-19 09:58:06 -08:00

40 lines
1.1 KiB
Nix

{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
name = "google-gflags-${version}";
version = "2.2.2";
src = fetchFromGitHub {
owner = "gflags";
repo = "gflags";
rev = "v${version}";
sha256 = "147i3md3nxkjlrccqg4mq1kyzc7yrhvqv5902iibc7znkvzdvlp0";
};
nativeBuildInputs = [ cmake ];
# This isn't used by the build and breaks the CMake build on case-insensitive filesystems (e.g., on Darwin)
preConfigure = "rm BUILD";
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DBUILD_STATIC_LIBS=ON"
"-DBUILD_TESTING=${if doCheck then "ON" else "OFF"}"
];
doCheck = false;
meta = with stdenv.lib; {
description = "A C++ library that implements commandline flags processing";
longDescription = ''
The gflags package contains a C++ library that implements commandline flags processing.
As such it's a replacement for getopt().
It was owned by Google. google-gflags project has been renamed to gflags and maintained by new community.
'';
homepage = https://gflags.github.io/gflags/;
license = licenses.bsd3;
maintainers = [ maintainers.linquize ];
platforms = platforms.all;
};
}