mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-24 18:16:21 +03:00
opencsg: fix
This commit is contained in:
parent
bfbf67f8bb
commit
76d13bcc5e
2 changed files with 13 additions and 11 deletions
|
@ -22,6 +22,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
hash = "sha256-r8wASontO8R4qeS6ObIPPVibJOI+J1tzg/kaWQ1NV8U=";
|
hash = "sha256-r8wASontO8R4qeS6ObIPPVibJOI+J1tzg/kaWQ1NV8U=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = lib.optionals stdenv.hostPlatform.isDarwin [ ./opencsgexample.patch ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
|
nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
|
@ -37,18 +39,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
postInstall =
|
postInstall = ''
|
||||||
''
|
|
||||||
install -D ../copying.txt "$out/share/doc/opencsg/copying.txt"
|
install -D ../copying.txt "$out/share/doc/opencsg/copying.txt"
|
||||||
''
|
|
||||||
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
||||||
mkdir -p $out/Applications
|
|
||||||
mv $out/bin/*.app $out/Applications
|
|
||||||
rmdir $out/bin || true
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontWrapQtApps = true;
|
|
||||||
|
|
||||||
postFixup = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
postFixup = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||||
app=$out/Applications/opencsgexample.app/Contents/MacOS/opencsgexample
|
app=$out/Applications/opencsgexample.app/Contents/MacOS/opencsgexample
|
||||||
install_name_tool -change \
|
install_name_tool -change \
|
||||||
|
|
8
pkgs/development/libraries/opencsg/opencsgexample.patch
Normal file
8
pkgs/development/libraries/opencsg/opencsgexample.patch
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
--- a/example/CMakeLists.txt
|
||||||
|
+++ b/example/CMakeLists.txt
|
||||||
|
@@ -19,4 +19,5 @@
|
||||||
|
|
||||||
|
install(TARGETS opencsgexample
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
+ BUNDLE DESTINATION ${CMAKE_INSTALL_PREFIX}/Applications
|
||||||
|
)
|
Loading…
Add table
Add a link
Reference in a new issue