Skip to content

Commit

Permalink
Merge pull request NixOS#278051 from nevivurn/fix/libsvm-so-filename
Browse files Browse the repository at this point in the history
libsvm: fix shared library filename
  • Loading branch information
wegank authored Jan 3, 2024
2 parents d09a05e + c685acb commit 1fe9682
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/development/libraries/libsvm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ stdenv.mkDerivation rec {
let
libSuff = stdenv.hostPlatform.extensions.sharedLibrary;
soVersion = "3";
libName = if stdenv.isDarwin then "libsvm.${soVersion}${libSuff}" else "libsvm${libSuff}.${soVersion}";
in
''
runHook preInstall
install -D libsvm.so.${soVersion} $out/lib/libsvm.${soVersion}${libSuff}
ln -s $out/lib/libsvm.${soVersion}${libSuff} $out/lib/libsvm${libSuff}
install -D libsvm.so.${soVersion} $out/lib/${libName}
ln -s $out/lib/${libName} $out/lib/libsvm${libSuff}
install -Dt $bin/bin/ svm-scale svm-train svm-predict
Expand Down

0 comments on commit 1fe9682

Please sign in to comment.