Compare commits
10 Commits
786d3ba8e8
...
dcea1444c3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dcea1444c3 | ||
|
|
8348eb7a4b | ||
|
|
0349b4bb98 | ||
|
|
c8ef9c9b96 | ||
|
|
c4382fa872 | ||
|
|
c44bd5abc3 | ||
|
|
95119fbace | ||
|
|
2a26edb361 | ||
|
|
7c1d02b108 | ||
|
|
c9c30b98bd |
@@ -25,7 +25,7 @@ self: super: pkgs: with pkgs; {
|
|||||||
|
|
||||||
openslide = callPackage ./openslide { };
|
openslide = callPackage ./openslide { };
|
||||||
|
|
||||||
ovito = libsForQt5.callPackage ./ovito.nix { libav = libav_12; };
|
ovito = libsForQt5.callPackage ./ovito.nix { };
|
||||||
|
|
||||||
pythonOverrides = lib.composeExtensions super.pythonOverrides (import ./python-packages.nix pkgs);
|
pythonOverrides = lib.composeExtensions super.pythonOverrides (import ./python-packages.nix pkgs);
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ buildPythonApplication rec {
|
|||||||
|
|
||||||
srcs = [
|
srcs = [
|
||||||
( fetchurl {
|
( fetchurl {
|
||||||
url = "https://www.sharcnet.ca/~tyson/nix/mfix-${version}.tar.gz";
|
url = "https://staff.sharcnet.ca/~tyson/nix/mfix-${version}.tar.gz";
|
||||||
sha256 = "1bnwvgmrmz9y32fsnnqb4x2ab4yh9iyg1d7f3wc2w6q9fsfnzpj4";
|
sha256 = "1bnwvgmrmz9y32fsnnqb4x2ab4yh9iyg1d7f3wc2w6q9fsfnzpj4";
|
||||||
} )
|
} )
|
||||||
( fetchFromGitHub {
|
( fetchFromGitHub {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
srcs = [
|
srcs = [
|
||||||
( fetchurl {
|
( fetchurl {
|
||||||
url = "https://www.sharcnet.ca/~tyson/nix/mfix-${version}.tar.gz";
|
url = "https://staff.sharcnet.ca/~tyson/nix/mfix-${version}.tar.gz";
|
||||||
sha256 = "1bnwvgmrmz9y32fsnnqb4x2ab4yh9iyg1d7f3wc2w6q9fsfnzpj4";
|
sha256 = "1bnwvgmrmz9y32fsnnqb4x2ab4yh9iyg1d7f3wc2w6q9fsfnzpj4";
|
||||||
} )
|
} )
|
||||||
( fetchFromGitHub {
|
( fetchFromGitHub {
|
||||||
|
|||||||
@@ -240,6 +240,8 @@ EOF
|
|||||||
# Find all executables that depend on libGL and replace with a wrapper script that either executes the original
|
# Find all executables that depend on libGL and replace with a wrapper script that either executes the original
|
||||||
# executable or a copy with an added libvglfaker.so dependency depending on whether VGL_DISPLAY is set or not.
|
# executable or a copy with an added libvglfaker.so dependency depending on whether VGL_DISPLAY is set or not.
|
||||||
#
|
#
|
||||||
|
# Only run when we are a runtime dependency (i.e., our host matches).
|
||||||
|
#
|
||||||
VGL_autoAddVGL() {
|
VGL_autoAddVGL() {
|
||||||
declare opts=$(shopt -p) output
|
declare opts=$(shopt -p) output
|
||||||
set +o pipefail
|
set +o pipefail
|
||||||
@@ -247,7 +249,7 @@ VGL_autoAddVGL() {
|
|||||||
echo "Inserting VirtualGL into OpenGL executables in $prefix..." >&2
|
echo "Inserting VirtualGL into OpenGL executables in $prefix..." >&2
|
||||||
for output in $outputs; do
|
for output in $outputs; do
|
||||||
VGL_findS "${!output}" -type f \
|
VGL_findS "${!output}" -type f \
|
||||||
| VGL_testKeepS 'VGL_isElfBin "$1" && ! [[ "$1" == .*.vgl-* ]] && ! [[ "$1" == *.so* ]]' \
|
| VGL_testKeepS 'VGL_isElfBin "$1" && ! [[ ${1##*/} == .*.vgl-* ]] && ! [[ ${1##*/} == ?*.so ]]' \
|
||||||
| VGL_testKeepS 'VGL_elfLibsResolvedS "$1" | VGL_isTestAnyS '"$(VGL_quote 'VGL_isLibGL "$1"')" \
|
| VGL_testKeepS 'VGL_elfLibsResolvedS "$1" | VGL_isTestAnyS '"$(VGL_quote 'VGL_isLibGL "$1"')" \
|
||||||
| VGL_isTestAllS 'VGL_patch "$1"'
|
| VGL_isTestAllS 'VGL_patch "$1"'
|
||||||
done
|
done
|
||||||
@@ -255,4 +257,7 @@ VGL_autoAddVGL() {
|
|||||||
eval "$opts"
|
eval "$opts"
|
||||||
}
|
}
|
||||||
|
|
||||||
postFixupHooks+=(VGL_autoAddVGL)
|
|
||||||
|
if (( hostOffset == 0 )); then
|
||||||
|
fixupOutputHooks+=(VGL_autoAddVGL)
|
||||||
|
fi
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
{ stdenv, fetchFromGitLab, cmake
|
{ mkDerivation, lib, fetchFromGitLab, cmake
|
||||||
, boost, netcdf, hdf5, fftwSinglePrec, muparser, openssl, libav, python
|
, boost, netcdf, hdf5, fftwSinglePrec, muparser, openssl, ffmpeg, python
|
||||||
, qtbase, qtsvg, qttools, qscintilla }:
|
, qtbase, qtsvg, qttools, qscintilla }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
mkDerivation rec {
|
||||||
version = "3.3.5";
|
pname = "ovito";
|
||||||
name = "ovita-${version}";
|
version = "3.4.0";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
owner = "stuko";
|
owner = "stuko";
|
||||||
repo = "ovito";
|
repo = "ovito";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "016kc5qh1jg8xryjhizjx67pkdpirgnfwi2i92glclqimln6vnns";
|
sha256 = "1y3wr6yzpsl0qm7cicp2mppfszxd0fgx8hm99in9wff9qd0r16b5";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@@ -20,12 +20,12 @@ stdenv.mkDerivation rec {
|
|||||||
fftwSinglePrec
|
fftwSinglePrec
|
||||||
muparser
|
muparser
|
||||||
openssl
|
openssl
|
||||||
libav
|
ffmpeg
|
||||||
python
|
python
|
||||||
qtbase qtsvg qttools qscintilla
|
qtbase qtsvg qttools qscintilla
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with stdenv.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";
|
||||||
homepage = https://ovito.org;
|
homepage = https://ovito.org;
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ buildGoPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
declare -p
|
wrapProgram "$out/bin/smoove" \
|
||||||
wrapProgram "$bin/bin/smoove" \
|
|
||||||
--suffix PATH : "${gzip}/bin" \
|
--suffix PATH : "${gzip}/bin" \
|
||||||
--suffix PATH : "${gsort}/bin" \
|
--suffix PATH : "${gsort}/bin" \
|
||||||
--suffix PATH : "${htslib}/bin" \
|
--suffix PATH : "${htslib}/bin" \
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ in let
|
|||||||
# The nix provided nix/unpack-channel.nix function extracts the nixpkgs from the channel,
|
# The nix provided nix/unpack-channel.nix function extracts the nixpkgs from the channel,
|
||||||
#
|
#
|
||||||
nixpkgs =
|
nixpkgs =
|
||||||
( import <nix/unpack-channel.nix> rec {
|
( pkgs.callPackage ./unpack-channel.nix { } rec {
|
||||||
name = "nixos";
|
name = "nixos";
|
||||||
channelName = "${name}-${version}";
|
channelName = "${name}-${version}";
|
||||||
src = channel + /tarballs + "/${name}-${version}${nixpkgsVersion.suffix}.tar.xz";
|
src = channel + /tarballs + "/${name}-${version}${nixpkgsVersion.suffix}.tar.xz";
|
||||||
|
|||||||
45
unpack-channel.nix
Normal file
45
unpack-channel.nix
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
# Hydra runs the newer nix which doesn't have corepkgs/unpack-channel.nix. The nix-daemon runs the older nix which
|
||||||
|
# doesn't have builtins:unpack-channel. This means
|
||||||
|
#
|
||||||
|
# - for now we need to provide the older corepkgs/unpack-channel.nix
|
||||||
|
# - in the future we should switch to src/nix-channel/unpack-channel.nix
|
||||||
|
|
||||||
|
{ bash, coreutils, gnutar, xz, gzip, bzip2 }:
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
tarFlags = "--warning=no-timestamp";
|
||||||
|
|
||||||
|
builder = builtins.toFile "unpack-channel.sh"
|
||||||
|
''
|
||||||
|
mkdir $out
|
||||||
|
cd $out
|
||||||
|
xzpat="\.xz\$"
|
||||||
|
gzpat="\.gz\$"
|
||||||
|
if [[ "$src" =~ $xzpat ]]; then
|
||||||
|
xz -d < $src | tar xf - ${tarFlags}
|
||||||
|
elif [[ "$src" =~ $gzpat ]]; then
|
||||||
|
gzip -d < $src | tar xf - ${tarFlags}
|
||||||
|
else
|
||||||
|
bzip2 -d < $src | tar xf - ${tarFlags}
|
||||||
|
fi
|
||||||
|
if [ * != $channelName ]; then
|
||||||
|
mv * $out/$channelName
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
|
{ name, channelName, src }:
|
||||||
|
|
||||||
|
derivation {
|
||||||
|
system = builtins.currentSystem;
|
||||||
|
builder = "${bash}/bin/sh";
|
||||||
|
args = [ "-e" builder ];
|
||||||
|
inherit name channelName src;
|
||||||
|
|
||||||
|
PATH = "${coreutils}/bin:${gnutar}/bin:${xz}/bin:${gzip}/bin:${bzip2}/bin";
|
||||||
|
|
||||||
|
# No point in doing this remotely.
|
||||||
|
preferLocalBuild = true;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user