Skip to content

Commit

Permalink
viennarna: use dlib sources from nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
prusnak committed Mar 10, 2025
1 parent e2e41f0 commit 607b251
Showing 1 changed file with 9 additions and 0 deletions.
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 607b251

Please sign in to comment.