summary refs log tree commit diff
path: root/pkgs/development/libraries/gflags
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2019-07-25 09:04:55 +0000
committerOrivej Desh <orivej@gmx.fr>2019-07-25 09:18:32 +0000
commitb5d1d50aa90e0780c57fb4b323203ea5056be857 (patch)
tree7f5977d5c5182cdbe83eac1db1edbef0e3a30cf4 /pkgs/development/libraries/gflags
parent2f55e705e282753492dd81f73852781255a6ec81 (diff)
downloadnixpkgs-b5d1d50aa90e0780c57fb4b323203ea5056be857.tar
nixpkgs-b5d1d50aa90e0780c57fb4b323203ea5056be857.tar.gz
nixpkgs-b5d1d50aa90e0780c57fb4b323203ea5056be857.tar.bz2
nixpkgs-b5d1d50aa90e0780c57fb4b323203ea5056be857.tar.lz
nixpkgs-b5d1d50aa90e0780c57fb4b323203ea5056be857.tar.xz
nixpkgs-b5d1d50aa90e0780c57fb4b323203ea5056be857.tar.zst
nixpkgs-b5d1d50aa90e0780c57fb4b323203ea5056be857.zip
google-gflags: move to aliases.nix
google-gflags were renamed to gflags in 2012:
https://github.com/gflags/gflags/#25-january-2012

gflags.name will be updated in staging.
Diffstat (limited to 'pkgs/development/libraries/gflags')
-rw-r--r--pkgs/development/libraries/gflags/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gflags/default.nix b/pkgs/development/libraries/gflags/default.nix
new file mode 100644
index 00000000000..fefc3a8b4b8
--- /dev/null
+++ b/pkgs/development/libraries/gflags/default.nix
@@ -0,0 +1,38 @@
+{ 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"
+  ];
+
+  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;
+  };
+}