mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
oracle-instantclient: use copy instead of install for libraries
libclntsh.so* and libocci.so* are symlinks to the latest version. By using `install`, these are all dereferenced and duplicated. Let's avoid that, and shrink the lib output from 621M to 226M.
This commit is contained in:
parent
42f9df18ad
commit
ab6ada01f7
@ -103,7 +103,10 @@ in stdenv.mkDerivation {
|
||||
installPhase = ''
|
||||
mkdir -p "$out/"{bin,include,lib,"share/java","share/${pname}-${version}/demo/"} $lib/lib
|
||||
install -Dm755 {adrci,genezi,uidrvci,sqlplus} $out/bin
|
||||
install -Dm644 *${extLib}* $lib/lib
|
||||
|
||||
# cp to preserve symlinks
|
||||
cp -P *${extLib}* $lib/lib
|
||||
|
||||
install -Dm644 *.jar $out/share/java
|
||||
install -Dm644 sdk/include/* $out/include
|
||||
install -Dm644 sdk/demo/* $out/share/${pname}-${version}/demo
|
||||
|
Loading…
Reference in New Issue
Block a user