···1{ lib
2, mkDerivation
3, fetchFromGitHub
4-, fetchpatch
5, cmake
6, dxflib
7, eigen
···2021mkDerivation rec {
22 pname = "cloudcompare";
23- # Released version doesn't work with packaged PCL
24- # because it's too new. Considering that a release
25- # is a year ago it's unreasonable to wait for it.
26 version = "unstable-2021-10-14";
2728 src = fetchFromGitHub {
···1{ lib
2, mkDerivation
3, fetchFromGitHub
04, cmake
5, dxflib
6, eigen
···1920mkDerivation rec {
21 pname = "cloudcompare";
22+ # Released version(v2.11.3) doesn't work with packaged PCL.
0023 version = "unstable-2021-10-14";
2425 src = fetchFromGitHub {
···1+# This setup hook causes the fixup phase to repack all JAR files in a
2+# canonical & deterministic fashion, e.g. resetting mtimes (like with normal
3+# store files) and avoiding impure metadata.
4+5+fixupOutputHooks+=('if [ -z "$dontCanonicalizeJars" -a -e "$prefix" ]; then canonicalizeJarsIn "$prefix"; fi')
6+7+canonicalizeJarsIn() {
8+ local dir="$1"
9+ header "canonicalizing jars in $dir"
10+ dir="$(realpath -sm -- "$dir")"
11+ while IFS= read -rd '' f; do
12+ canonicalizeJar "$f"
13+ done < <(find -- "$dir" -type f -name '*.jar' -print0)
14+ stopNest
15+}
16+17+source @canonicalize_jar@
···24 done
25 '';
26}
27-# TODO: set ARCAN_FONTPATH to a set of fonts that can be provided in a parameter
28# TODO: set ARCAN_STATEBASEPATH to $HOME/.arcan/resources/savestates/ - possibly
29# via a suitable script
0
···24 done
25 '';
26}
027# TODO: set ARCAN_STATEBASEPATH to $HOME/.arcan/resources/savestates/ - possibly
28# via a suitable script
29+# TODO: set ARCAN_FONTPATH to a set of default-but-configurable fontset
···1-{ lib, antBuild, fetchgit, perl }:
2-3-let
4- version = "4.11";
5-in antBuild {
6- name = "junit-${version}";
7-8- # I think this is only used to generate the docs, and will likely disappear
9- # with the next release of junit since its build system completely changes.
10- buildInputs = [perl];
11-12- src = fetchgit {
13- url = "https://github.com/junit-team/junit.git";
14- sha256 = "1cn5dhs6vpbfbcmnm2vb1212n0kblv8cxrvnwmksjxd6bzlkac1k";
15- rev = "c2e4d911fadfbd64444fb285342a8f1b72336169";
16- };
17-18- antProperties = [
19- { name = "version"; value = version; }
20- ];
21-22- meta = {
23- homepage = "http://www.junit.org/";
24- description = "A framework for repeatable tests in Java";
25- license = lib.licenses.epl10;
26- broken = true;
27- };
28-}