Robert Schütz 2026-05-31 12:51:18 -07:00
commit 225844edfe

View file

@ -2,31 +2,21 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
enableShared ? !stdenv.hostPlatform.isStatic,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gflags";
version = "2.2.2";
version = "2.3.0";
src = fetchFromGitHub {
owner = "gflags";
repo = "gflags";
rev = "v${finalAttrs.version}";
sha256 = "147i3md3nxkjlrccqg4mq1kyzc7yrhvqv5902iibc7znkvzdvlp0";
tag = "v${finalAttrs.version}";
hash = "sha256-sud3c6XH24YA6vzGQ7LhSoiKycan5JYehC5l2gH6DEo=";
};
patches = [
# Fix the build with CMake 4.
(fetchpatch {
name = "gflags-fix-cmake-4.patch";
url = "https://github.com/gflags/gflags/commit/70c01a642f08734b7bddc9687884844ca117e080.patch";
hash = "sha256-TYdroBbF27Wvvm/rOahBEvhezuKCcxbtgh/ZhpA5ESo=";
})
];
nativeBuildInputs = [ cmake ];
# This isn't used by the build and breaks the CMake build on case-insensitive filesystems (e.g., on Darwin)
@ -48,6 +38,7 @@ stdenv.mkDerivation (finalAttrs: {
It was owned by Google. google-gflags project has been renamed to gflags and maintained by new community.
'';
homepage = "https://gflags.github.io/gflags/";
changelog = "https://github.com/gflags/gflags/blob/${finalAttrs.src.tag}/ChangeLog.txt";
license = lib.licenses.bsd3;
maintainers = [ ];
platforms = lib.platforms.all;