mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 16:15:30 +00:00
97dc2e99f5
Originally found in https://github.com/nh2/static-haskell-nix/issues/70
35 lines
1 KiB
Nix
35 lines
1 KiB
Nix
{ stdenv, lib, fetchFromGitHub, fetchpatch, autoreconfHook, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "glog";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "glog";
|
|
rev = "v${version}";
|
|
sha256 = "1xd3maiipfbxmhc9rrblc5x52nxvkwxp14npg31y5njqvkvzax9b";
|
|
};
|
|
|
|
patches = lib.optionals stdenv.hostPlatform.isMusl [
|
|
# TODO: Remove at next release that includes this commit.
|
|
(fetchpatch {
|
|
name = "glog-Fix-symbolize_unittest-for-musl-builds.patch";
|
|
url = "https://github.com/google/glog/commit/834dd780bf1fe0704b8ed0350ca355a55f711a9f.patch";
|
|
sha256 = "0k4lanxg85anyvjsj3mh93bcgds8gizpiamcy2zvs3yyfjl40awn";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
checkInputs = [ perl ];
|
|
doCheck = false; # fails with "Mangled symbols (28 out of 380) found in demangle.dm"
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/google/glog;
|
|
license = licenses.bsd3;
|
|
description = "Library for application-level logging";
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|