···11{ lib
22, mkDerivation
33, fetchFromGitHub
44-, fetchpatch
54, cmake
65, dxflib
76, eigen
···20192120mkDerivation rec {
2221 pname = "cloudcompare";
2323- # Released version doesn't work with packaged PCL
2424- # because it's too new. Considering that a release
2525- # is a year ago it's unreasonable to wait for it.
2222+ # Released version(v2.11.3) doesn't work with packaged PCL.
2623 version = "unstable-2021-10-14";
27242825 src = fetchFromGitHub {
···11+# This setup hook causes the fixup phase to repack all JAR files in a
22+# canonical & deterministic fashion, e.g. resetting mtimes (like with normal
33+# store files) and avoiding impure metadata.
44+55+fixupOutputHooks+=('if [ -z "$dontCanonicalizeJars" -a -e "$prefix" ]; then canonicalizeJarsIn "$prefix"; fi')
66+77+canonicalizeJarsIn() {
88+ local dir="$1"
99+ header "canonicalizing jars in $dir"
1010+ dir="$(realpath -sm -- "$dir")"
1111+ while IFS= read -rd '' f; do
1212+ canonicalizeJar "$f"
1313+ done < <(find -- "$dir" -type f -name '*.jar' -print0)
1414+ stopNest
1515+}
1616+1717+source @canonicalize_jar@
···2424 done
2525 '';
2626}
2727-# TODO: set ARCAN_FONTPATH to a set of fonts that can be provided in a parameter
2827# TODO: set ARCAN_STATEBASEPATH to $HOME/.arcan/resources/savestates/ - possibly
2928# via a suitable script
2929+# TODO: set ARCAN_FONTPATH to a set of default-but-configurable fontset
···11-{ lib, antBuild, fetchgit, perl }:
22-33-let
44- version = "4.11";
55-in antBuild {
66- name = "junit-${version}";
77-88- # I think this is only used to generate the docs, and will likely disappear
99- # with the next release of junit since its build system completely changes.
1010- buildInputs = [perl];
1111-1212- src = fetchgit {
1313- url = "https://github.com/junit-team/junit.git";
1414- sha256 = "1cn5dhs6vpbfbcmnm2vb1212n0kblv8cxrvnwmksjxd6bzlkac1k";
1515- rev = "c2e4d911fadfbd64444fb285342a8f1b72336169";
1616- };
1717-1818- antProperties = [
1919- { name = "version"; value = version; }
2020- ];
2121-2222- meta = {
2323- homepage = "http://www.junit.org/";
2424- description = "A framework for repeatable tests in Java";
2525- license = lib.licenses.epl10;
2626- broken = true;
2727- };
2828-}