···50505151 # without this, only the splash screen will be shown and the logs will contain the
5252 # line `Failed to load dynamic library 'lib/libintiface_engine_flutter_bridge.so'`
5353- extraWrapProgramArgs = "--chdir $out/app";
5353+ # Environmental variables don't quite eval outside of hooks so use pname and
5454+ # version directly.
5555+ extraWrapProgramArgs = "--chdir $out/app/${pname}";
54565557 postInstall = ''
5658 mkdir -p $out/share/pixmaps
5757- cp $out/app/data/flutter_assets/assets/icons/intiface_central_icon.png $out/share/pixmaps/intiface-central.png
5959+ cp $out/app/$pname/data/flutter_assets/assets/icons/intiface_central_icon.png $out/share/pixmaps/intiface-central.png
5860 '';
59616062 desktopItems = [
···146146 built=build/linux/*/$flutterMode/bundle
147147148148 mkdir -p $out/bin
149149- mv $built $out/app
149149+ mkdir -p $out/app
150150+ mv $built $out/app/$pname
150151151151- for f in $(find $out/app -iname "*.desktop" -type f); do
152152+ for f in $(find $out/app/$pname -iname "*.desktop" -type f); do
152153 install -D $f $out/share/applications/$(basename $f)
153154 done
154155155155- for f in $(find $out/app -maxdepth 1 -type f); do
156156+ for f in $(find $out/app/$pname -maxdepth 1 -type f); do
156157 ln -s $f $out/bin/$(basename $f)
157158 done
158159159160 # make *.so executable
160160- find $out/app -iname "*.so" -type f -exec chmod +x {} +
161161+ find $out/app/$pname -iname "*.so" -type f -exec chmod +x {} +
161162162163 # remove stuff like /build/source/packages/ubuntu_desktop_installer/linux/flutter/ephemeral
163163- for f in $(find $out/app -executable -type f); do
164164+ for f in $(find $out/app/$pname -executable -type f); do
164165 if patchelf --print-rpath "$f" | grep /build; then # this ignores static libs (e,g. libapp.so) also
165166 echo "strip RPath of $f"
166167 newrp=$(patchelf --print-rpath $f | sed -r "s|/build.*ephemeral:||g" | sed -r "s|/build.*profile:||g")
···2020 cmake,
2121 perl,
2222 git,
2323- # nix has a problem with the `?` in the feature list
2424- # enabling kafka will produce a vector with no features at all
2525- enableKafka ? false,
2626- # TODO investigate adding various "vendor-*"
2727- # "disk-buffer" is using leveldb TODO: investigate how useful
2828- # it would be, perhaps only for massive scale?
2929- features ? (
3030- [
3131- "api"
3232- "api-client"
3333- "enrichment-tables"
3434- "sinks"
3535- "sources"
3636- "sources-dnstap"
3737- "transforms"
3838- "component-validation-runner"
3939- ]
4040- # the second feature flag is passed to the rdkafka dependency
4141- # building on linux fails without this feature flag (both x86_64 and AArch64)
4242- ++ lib.optionals enableKafka [ "rdkafka?/gssapi-vendored" ]
4343- ++ lib.optional stdenv.hostPlatform.isUnix "unix"
4444- ),
4523 nixosTests,
4624 nix-update-script,
4725}:
···11997 CARGO_PROFILE_RELEASE_LTO = "fat";
12098 CARGO_PROFILE_RELEASE_CODEGEN_UNITS = "1";
12199122122- buildNoDefaultFeatures = true;
123123- buildFeatures = features;
124124-125100 # TODO investigate compilation failure for tests
126101 # there are about 100 tests failing (out of 1100) for version 0.22.0
127102 doCheck = false;
···158133 '';
159134160135 passthru = {
161161- inherit features;
162136 tests = {
163137 inherit (nixosTests) vector;
164138 };