Skip to content
/ nixpkgs Public
forked from NixOS/nixpkgs

Commit

Permalink
dlib: 19.24.6 -> 19.24.8 (NixOS#388805)
Browse files Browse the repository at this point in the history
  • Loading branch information
prusnak authored Mar 10, 2025
2 parents c48d29d + b8270cd commit bd972a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/by-name/dl/dlib/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down
9 changes: 9 additions & 0 deletions pkgs/by-name/vi/viennarna/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
stdenv,
fetchurl,
dlib,
gsl,
mpfr,
perl,
Expand All @@ -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
Expand Down

0 comments on commit bd972a6

Please sign in to comment.