···5051 # without this, only the splash screen will be shown and the logs will contain the
52 # line `Failed to load dynamic library 'lib/libintiface_engine_flutter_bridge.so'`
53- extraWrapProgramArgs = "--chdir $out/app";
005455 postInstall = ''
56 mkdir -p $out/share/pixmaps
57- cp $out/app/data/flutter_assets/assets/icons/intiface_central_icon.png $out/share/pixmaps/intiface-central.png
58 '';
5960 desktopItems = [
···5051 # without this, only the splash screen will be shown and the logs will contain the
52 # line `Failed to load dynamic library 'lib/libintiface_engine_flutter_bridge.so'`
53+ # Environmental variables don't quite eval outside of hooks so use pname and
54+ # version directly.
55+ extraWrapProgramArgs = "--chdir $out/app/${pname}";
5657 postInstall = ''
58 mkdir -p $out/share/pixmaps
59+ cp $out/app/$pname/data/flutter_assets/assets/icons/intiface_central_icon.png $out/share/pixmaps/intiface-central.png
60 '';
6162 desktopItems = [
···20 cmake,
21 perl,
22 git,
23- # nix has a problem with the `?` in the feature list
24- # enabling kafka will produce a vector with no features at all
25- enableKafka ? false,
26- # TODO investigate adding various "vendor-*"
27- # "disk-buffer" is using leveldb TODO: investigate how useful
28- # it would be, perhaps only for massive scale?
29- features ? (
30- [
31- "api"
32- "api-client"
33- "enrichment-tables"
34- "sinks"
35- "sources"
36- "sources-dnstap"
37- "transforms"
38- "component-validation-runner"
39- ]
40- # the second feature flag is passed to the rdkafka dependency
41- # building on linux fails without this feature flag (both x86_64 and AArch64)
42- ++ lib.optionals enableKafka [ "rdkafka?/gssapi-vendored" ]
43- ++ lib.optional stdenv.hostPlatform.isUnix "unix"
44- ),
45 nixosTests,
46 nix-update-script,
47}:
···119 CARGO_PROFILE_RELEASE_LTO = "fat";
120 CARGO_PROFILE_RELEASE_CODEGEN_UNITS = "1";
121122- buildNoDefaultFeatures = true;
123- buildFeatures = features;
124-125 # TODO investigate compilation failure for tests
126 # there are about 100 tests failing (out of 1100) for version 0.22.0
127 doCheck = false;
···158 '';
159160 passthru = {
161- inherit features;
162 tests = {
163 inherit (nixosTests) vector;
164 };
···20 cmake,
21 perl,
22 git,
000000000000000000000023 nixosTests,
24 nix-update-script,
25}:
···97 CARGO_PROFILE_RELEASE_LTO = "fat";
98 CARGO_PROFILE_RELEASE_CODEGEN_UNITS = "1";
99000100 # TODO investigate compilation failure for tests
101 # there are about 100 tests failing (out of 1100) for version 0.22.0
102 doCheck = false;
···133 '';
134135 passthru = {
0136 tests = {
137 inherit (nixosTests) vector;
138 };