mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
ovito: 3.7.11 -> 3.11.0
Co-authored-by: Aleksana <alexander.huang.y@gmail.com>
This commit is contained in:
parent
a3c0b3b215
commit
ca733c424f
@ -1,7 +1,8 @@
|
|||||||
{ mkDerivation
|
{ lib
|
||||||
, lib
|
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitLab
|
, fetchFromGitLab
|
||||||
|
, fetchurl
|
||||||
|
, makeDesktopItem
|
||||||
, cmake
|
, cmake
|
||||||
, boost
|
, boost
|
||||||
, bzip2
|
, bzip2
|
||||||
@ -17,21 +18,27 @@
|
|||||||
, qtsvg
|
, qtsvg
|
||||||
, qttools
|
, qttools
|
||||||
, VideoDecodeAcceleration
|
, VideoDecodeAcceleration
|
||||||
|
, wrapQtAppsHook
|
||||||
|
, copyDesktopItems
|
||||||
|
# needed to run natively on wayland
|
||||||
|
, qtwayland
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "ovito";
|
pname = "ovito";
|
||||||
version = "3.7.11";
|
version = "3.11.0";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
owner = "stuko";
|
owner = "stuko";
|
||||||
repo = "ovito";
|
repo = "ovito";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-Z3uwjOYJ7di/LLllbzdKjzUE7m119i03bA8dJPqhxWA=";
|
hash = "sha256-egiA6z1e8ZS7i4CIVjsCKJP1wQSRpmSKitoVTszu0Mc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
|
wrapQtAppsHook
|
||||||
|
copyDesktopItems
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -48,16 +55,42 @@ mkDerivation rec {
|
|||||||
qtbase
|
qtbase
|
||||||
qtsvg
|
qtsvg
|
||||||
qttools
|
qttools
|
||||||
|
qtwayland
|
||||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
VideoDecodeAcceleration
|
VideoDecodeAcceleration
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# manually create a desktop file
|
||||||
|
desktopItems = [ (makeDesktopItem {
|
||||||
|
name = "ovito";
|
||||||
|
comment= "Open Visualization Tool";
|
||||||
|
exec = "ovito";
|
||||||
|
icon = "ovito";
|
||||||
|
terminal = false;
|
||||||
|
startupNotify = false;
|
||||||
|
desktopName = "ovito";
|
||||||
|
startupWMClass = "Ovito";
|
||||||
|
categories = [ "Science" ];
|
||||||
|
})];
|
||||||
|
|
||||||
|
postInstall = let
|
||||||
|
icon = fetchurl {
|
||||||
|
url = "https://www.ovito.org/wp-content/uploads/logo_rgb-768x737.png";
|
||||||
|
hash = "sha256-FOmIUeXem+4MjavQNag0UIlcR2wa2emJjivwxoJh6fI=";
|
||||||
|
};
|
||||||
|
in ''
|
||||||
|
install -Dm644 ${icon} $out/share/pixmaps/ovito.png
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Scientific visualization and analysis software for atomistic and particle simulation data";
|
description = "Scientific visualization and analysis software for atomistic and particle simulation data";
|
||||||
mainProgram = "ovito";
|
mainProgram = "ovito";
|
||||||
homepage = "https://ovito.org";
|
homepage = "https://ovito.org";
|
||||||
license = with licenses; [ gpl3Only mit ];
|
license = with licenses; [ gpl3Only mit ];
|
||||||
maintainers = with maintainers; [ twhitehead ];
|
maintainers = with maintainers; [
|
||||||
|
twhitehead
|
||||||
|
chn
|
||||||
|
];
|
||||||
broken = stdenv.hostPlatform.isDarwin; # clang-11: error: no such file or directory: '$-DOVITO_COPYRIGHT_NOTICE=...
|
broken = stdenv.hostPlatform.isDarwin; # clang-11: error: no such file or directory: '$-DOVITO_COPYRIGHT_NOTICE=...
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -10893,7 +10893,7 @@ with pkgs;
|
|||||||
|
|
||||||
oxlint = callPackage ../development/tools/oxlint { };
|
oxlint = callPackage ../development/tools/oxlint { };
|
||||||
|
|
||||||
ovito = libsForQt5.callPackage ../applications/graphics/ovito {
|
ovito = qt6Packages.callPackage ../applications/graphics/ovito {
|
||||||
inherit (darwin.apple_sdk.frameworks) VideoDecodeAcceleration;
|
inherit (darwin.apple_sdk.frameworks) VideoDecodeAcceleration;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user