paraview: cleanup, format
This commit is contained in:
parent
19be7f9c3e
commit
daa36171c0
|
@ -7,21 +7,20 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "5.9.1";
|
version = "5.9.1";
|
||||||
major = "5.9";
|
|
||||||
|
|
||||||
docFiles = [
|
docFiles = [
|
||||||
(fetchurl {
|
(fetchurl {
|
||||||
url = "https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v${major}&type=data&os=Sources&downloadFile=ParaViewTutorial-${version}.pdf";
|
url = "https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v${lib.versions.majorMinor version}&type=data&os=Sources&downloadFile=ParaViewTutorial-${version}.pdf";
|
||||||
name = "Tutorial.pdf";
|
name = "Tutorial.pdf";
|
||||||
sha256 = "1knpirjbz3rv8p8n03p39vv8vi5imvxakjsssqgly09g0cnsikkw";
|
sha256 = "1knpirjbz3rv8p8n03p39vv8vi5imvxakjsssqgly09g0cnsikkw";
|
||||||
})
|
})
|
||||||
(fetchurl {
|
(fetchurl {
|
||||||
url = "https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v${major}&type=data&os=Sources&downloadFile=ParaViewGettingStarted-${version}.pdf";
|
url = "https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v${lib.versions.majorMinor version}&type=data&os=Sources&downloadFile=ParaViewGettingStarted-${version}.pdf";
|
||||||
name = "GettingStarted.pdf";
|
name = "GettingStarted.pdf";
|
||||||
sha256 = "14xhlvg7s7d5amqf4qfyamx2a6b66zf4cmlfm3s7iw3jq01x1lx6";
|
sha256 = "14xhlvg7s7d5amqf4qfyamx2a6b66zf4cmlfm3s7iw3jq01x1lx6";
|
||||||
})
|
})
|
||||||
(fetchurl {
|
(fetchurl {
|
||||||
url = "https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v${major}&type=data&os=Sources&downloadFile=ParaViewCatalystGuide-${version}.pdf";
|
url = "https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v${lib.versions.majorMinor version}&type=data&os=Sources&downloadFile=ParaViewCatalystGuide-${version}.pdf";
|
||||||
name = "CatalystGuide.pdf";
|
name = "CatalystGuide.pdf";
|
||||||
sha256 = "133vcfrbg2nh15igl51ns6gnfn1is20vq6j0rg37wha697pmcr4a";
|
sha256 = "133vcfrbg2nh15igl51ns6gnfn1is20vq6j0rg37wha697pmcr4a";
|
||||||
})
|
})
|
||||||
|
@ -79,7 +78,8 @@ in mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libGLU libGL
|
libGLU
|
||||||
|
libGL
|
||||||
libXt
|
libXt
|
||||||
mpi
|
mpi
|
||||||
tbb
|
tbb
|
||||||
|
@ -93,7 +93,7 @@ in mkDerivation rec {
|
||||||
qtsvg
|
qtsvg
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = let docDir = "$out/share/paraview-${major}/doc"; in
|
postInstall = let docDir = "$out/share/paraview-${lib.versions.majorMinor version}/doc"; in
|
||||||
lib.optionalString withDocs ''
|
lib.optionalString withDocs ''
|
||||||
mkdir -p ${docDir};
|
mkdir -p ${docDir};
|
||||||
for docFile in ${lib.concatStringsSep " " docFiles}; do
|
for docFile in ${lib.concatStringsSep " " docFiles}; do
|
||||||
|
@ -112,5 +112,4 @@ in mkDerivation rec {
|
||||||
maintainers = with maintainers; [ guibert ];
|
maintainers = with maintainers; [ guibert ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue