about summary refs log tree commit diff
path: root/pkgs/development/libraries/db/db-4.8.nix
blob: 4d6029d6d8211eefc67e5de14ff0b632a9223e41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ lib, stdenv, fetchurl, autoreconfHook, targetPlatform, ... } @ args:

import ./generic.nix (builtins.removeAttrs args ["targetPlatform"] // {
  version = "4.8.30";
  sha256 = "0ampbl2f0hb1nix195kz1syrqqxpmvnvnfvphambj7xjrl3iljg0";
  extraPatches = [
    ./clang-4.8.patch
    ./CVE-2017-10140-4.8-cwd-db_config.patch
    ./darwin-mutexes-4.8.patch
  ];

  drvArgs.configureFlags = lib.optional (targetPlatform.useLLVM or false) "--with-mutex=POSIX/pthreads";

  drvArgs.hardeningDisable = [ "format" ];
  drvArgs.doCheck = false;
})