Skip to content

Commit

Permalink
cplex: fix file permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
2xsaiko committed Dec 5, 2024
1 parent f6848d9 commit 0c8fab2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pkgs/applications/science/math/cplex/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,21 @@ stdenv.mkDerivation rec {
rm -r $out/Uninstall
bins=(
$out/bin/*
$out/cplex/bin/x86-64_linux/cplex
$out/cplex/bin/x86-64_linux/cplexamp
$out/cpoptimizer/bin/x86-64_linux/cpoptimizer
$out/opl/bin/x86-64_linux/oplrun
$out/opl/bin/x86-64_linux/oplrunjava
$out/opl/oplide/jre/bin/*
$out/opl/oplide/oplide
)
find $out -type d -exec chmod 755 {} \;
find $out -type f -exec chmod 644 {} \;
chmod +111 "''${bins[@]}"
runHook postFixup
'';

Expand Down

0 comments on commit 0c8fab2

Please sign in to comment.