git.iko.soy/typeable/nixpkgs
on master help sign in
llvm6: same python output fix from #33871

Unlike that PR, however, this doesn't need to go to staging since no one depends on a package that doesn't exist yet :).

commit11cb7d00caa24cac2210cf00047fa0bb8235a356 authorWill Dietz <w@wdtz.org> dateFri 2 Feb 2018, 06:38 (9 years ago) parent0d90539
1 file changed+6−2
pkgs/development/compilers/llvm/6/llvm.nix+6−2
pkgs/development/compilers/llvm/6/llvm.nix+6−2
@@ -38,7 +38,7 @@ in stdenv.mkDerivation (rec {
3838 mv compiler-rt-* $sourceRoot/projects/compiler-rt
3939 '';
4040
41− outputs = [ "out" ]
41+ outputs = [ "out" "python" ]
4242 ++ stdenv.lib.optional enableSharedLibraries "lib";
4343
4444 nativeBuildInputs = [ perl groff cmake python ]
@@ -120,7 +120,11 @@ in stdenv.mkDerivation (rec {
120120 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib
121121 '';
122122
123− postInstall = stdenv.lib.optionalString enableSharedLibraries ''
123+ postInstall = ''
124+ mkdir -p $python/share
125+ mv $out/share/opt-viewer $python/share/opt-viewer
126+ ''
127+ + stdenv.lib.optionalString enableSharedLibraries ''
124128 moveToOutput "lib/libLLVM-*" "$lib"
125129 moveToOutput "lib/libLLVM${stdenv.hostPlatform.extensions.sharedLibrary}" "$lib"
126130 substituteInPlace "$out/lib/cmake/llvm/LLVMExports-${if debugVersion then "debug" else "release"}.cmake" \