nixpkgs/pkgs/development/libraries/glog/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.2 KiB
Nix
Raw Normal View History

2022-04-09 00:30:19 +01:00
{ stdenv, lib, fetchFromGitHub, cmake, gflags, perl }:
2014-01-24 14:51:04 +00:00
stdenv.mkDerivation rec {
pname = "glog";
2022-04-09 00:30:19 +01:00
version = "0.6.0";
2015-04-21 23:33:39 +01:00
src = fetchFromGitHub {
2017-11-12 13:37:36 +00:00
owner = "google";
2015-04-21 23:33:39 +01:00
repo = "glog";
rev = "v${version}";
2022-04-09 00:30:19 +01:00
sha256 = "sha256-xqRp9vaauBkKz2CXbh/Z4TWqhaUtqfbsSlbYZR/kW9s=";
2014-01-24 14:51:04 +00:00
};
2019-12-16 12:04:53 +00:00
nativeBuildInputs = [ cmake ];
propagatedBuildInputs = [ gflags ];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
# Mak CMake place RPATHs such that tests will find the built libraries.
# See https://github.com/NixOS/nixpkgs/pull/144561#discussion_r742468811 and https://github.com/NixOS/nixpkgs/pull/108496
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
];
2015-04-21 23:33:39 +01:00
# TODO: Re-enable Darwin tests once we're on a release that has https://github.com/google/glog/issues/709#issuecomment-960381653 fixed
doCheck = !stdenv.isDarwin;
# There are some non-thread safe tests that can fail
enableParallelChecking = false;
2018-08-08 19:31:20 +01:00
checkInputs = [ perl ];
meta = with lib; {
2019-12-16 12:04:53 +00:00
homepage = "https://github.com/google/glog";
2015-04-21 23:33:39 +01:00
license = licenses.bsd3;
description = "Library for application-level logging";
2015-04-21 23:33:39 +01:00
platforms = platforms.unix;
2021-11-11 13:47:03 +00:00
maintainers = with maintainers; [ nh2 r-burns ];
2014-01-24 14:51:04 +00:00
};
}