Unverified Commit 2af0edcb authored by Pavol Rusnak's avatar Pavol Rusnak Committed by GitHub
Browse files

dlib: 19.24.6 -> 19.24.8 (#388805)

parents 98b8c3e5 607b2513
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -20,13 +20,13 @@
}@inputs:
(if cudaSupport then cudaPackages.backendStdenv else inputs.stdenv).mkDerivation rec {
  pname = "dlib";
  version = "19.24.6";
  version = "19.24.8";

  src = fetchFromGitHub {
    owner = "davisking";
    repo = "dlib";
    tag = "v${version}";
    sha256 = "sha256-BpE7ZrtiiaDqwy1G4IHOQBJMr6sAadFbRxsdObs1SIY=";
    sha256 = "sha256-b8DFlfBnF4Fk7beJPxQJDVHaCR7s5/4uAPi3RV9cBZ4=";
  };

  postPatch = ''
+9 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchurl,
  dlib,
  gsl,
  mpfr,
  perl,
@@ -17,6 +18,14 @@ stdenv.mkDerivation rec {
    hash = "sha256-mpn9aO04CJTe+01eaooocWKScAKM338W8KBdpujHFHM=";
  };

  # use nixpkgs dlib sources instead of bundled ones
  # using dlib-19.24.8 fixes the build with modern compilers (such as clang-19)
  postPatch = ''
    rm -rf ./src/dlib-19.24
    cp -a ${dlib.src} ./src/dlib-19.24
    find ./src/dlib-19.24 -type d -exec chmod +w {} \;
  '';

  buildInputs = [
    gsl
    mpfr