-
-
Notifications
You must be signed in to change notification settings - Fork 19.5k
lixPackageSets.{lix_2_93,git}: init #398141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
2ad2194
8966395
cf78bf6
39529f9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,6 +42,7 @@ assert lib.assertMsg ( | |
| libarchive, | ||
| libcpuid, | ||
| libsodium, | ||
| libsystemtap, | ||
| llvmPackages, | ||
| lowdown, | ||
| lowdown-unsandboxed, | ||
|
|
@@ -59,9 +60,11 @@ assert lib.assertMsg ( | |
| pkg-config, | ||
| rapidcheck, | ||
| sqlite, | ||
| systemtap-sdt, | ||
| util-linuxMinimal, | ||
| removeReferencesTo, | ||
| xz, | ||
| yq, | ||
| nixosTests, | ||
| rustPlatform, | ||
| # Only used for versions before 2.92. | ||
|
|
@@ -76,6 +79,10 @@ assert lib.assertMsg ( | |
| enableStrictLLVMChecks ? true, | ||
| withAWS ? !enableStatic && (stdenv.hostPlatform.isLinux || stdenv.hostPlatform.isDarwin), | ||
| aws-sdk-cpp, | ||
| # FIXME support Darwin once https://github.com/NixOS/nixpkgs/pull/392918 lands | ||
| withDtrace ? | ||
| lib.meta.availableOn stdenv.hostPlatform libsystemtap | ||
| && lib.meta.availableOn stdenv.buildPlatform systemtap-sdt, | ||
| # RISC-V support in progress https://github.com/seccomp/libseccomp/pull/50 | ||
| withLibseccomp ? lib.meta.availableOn stdenv.hostPlatform libseccomp, | ||
| libseccomp, | ||
|
|
@@ -88,6 +95,8 @@ let | |
| isLLVMOnly = lib.versionAtLeast version "2.92"; | ||
| hasExternalLixDoc = lib.versionOlder version "2.92"; | ||
| isLegacyParser = lib.versionOlder version "2.91"; | ||
| hasDtraceSupport = lib.versionAtLeast version "2.93"; | ||
| parseToYAML = lib.versionAtLeast version "2.93"; | ||
| in | ||
| # gcc miscompiles coroutines at least until 13.2, possibly longer | ||
| # do not remove this check unless you are sure you (or your users) will not report bugs to Lix upstream about GCC miscompilations. | ||
|
|
@@ -159,6 +168,8 @@ stdenv.mkDerivation (finalAttrs: { | |
| mdbook-linkcheck | ||
| doxygen | ||
| ] | ||
| ++ lib.optionals (hasDtraceSupport && withDtrace) [ systemtap-sdt ] | ||
| ++ lib.optionals parseToYAML [ yq ] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. huh, can you remind me why we depend on yq? i actually don't remember how that got in there.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The dependency was introduced in https://gerrit.lix.systems/c/lix/+/2190 for some parser tests so that the output is more readable.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah that's a little bit silly of us since we probably should just use PyYAML instead which we already depend on but oh well. |
||
| ++ lib.optionals stdenv.hostPlatform.isLinux [ util-linuxMinimal ]; | ||
|
|
||
| buildInputs = | ||
|
|
@@ -187,7 +198,8 @@ stdenv.mkDerivation (finalAttrs: { | |
| ++ lib.optionals stdenv.hostPlatform.isStatic [ llvmPackages.libunwind ] | ||
| ++ lib.optionals (stdenv.hostPlatform.isx86_64) [ libcpuid ] | ||
| ++ lib.optionals withLibseccomp [ libseccomp ] | ||
| ++ lib.optionals withAWS [ aws-sdk-cpp ]; | ||
| ++ lib.optionals withAWS [ aws-sdk-cpp ] | ||
| ++ lib.optionals (hasDtraceSupport && withDtrace) [ libsystemtap ]; | ||
|
|
||
| inherit cargoDeps; | ||
|
|
||
|
|
@@ -256,6 +268,9 @@ stdenv.mkDerivation (finalAttrs: { | |
| (lib.mesonOption "state-dir" stateDir) | ||
| (lib.mesonOption "sysconfdir" confDir) | ||
| ] | ||
| ++ lib.optionals hasDtraceSupport [ | ||
| (lib.mesonEnable "dtrace-probes" withDtrace) | ||
| ] | ||
| ++ lib.optionals stdenv.hostPlatform.isLinux [ | ||
| (lib.mesonOption "sandbox-shell" "${busybox-sandbox-shell}/bin/busybox") | ||
| ]; | ||
|
|
@@ -347,8 +362,8 @@ stdenv.mkDerivation (finalAttrs: { | |
| passthru = { | ||
| inherit aws-sdk-cpp boehmgc; | ||
| tests = { | ||
| misc = nixosTests.nix-misc.lix; | ||
| installer = nixosTests.installer.lix-simple; | ||
| misc = nixosTests.nix-misc.default.passthru.override { nixPackage = finalAttrs.finalPackage; }; | ||
| installer = nixosTests.installer.simple.override { selectNixPackage = _: finalAttrs.finalPackage; }; | ||
| }; | ||
| }; | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,7 @@ | |
| lib, | ||
| lix, | ||
| boost, | ||
| capnproto, | ||
| nlohmann_json, | ||
| meson, | ||
| pkg-config, | ||
|
|
@@ -23,11 +24,16 @@ stdenv.mkDerivation { | |
| pname = "nix-eval-jobs"; | ||
| version = "${version}${suffix}"; | ||
| inherit src patches; | ||
| buildInputs = [ | ||
| nlohmann_json | ||
| lix | ||
| boost | ||
| ]; | ||
| sourceRoot = if lib.versionAtLeast version "2.93" then "source/subprojects/nix-eval-jobs" else null; | ||
| buildInputs = | ||
| [ | ||
| nlohmann_json | ||
| lix | ||
| boost | ||
| ] | ||
| ++ lib.optionals (lib.versionAtLeast version "2.93") [ | ||
| capnproto | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hm, i suspect we will need a lix branded capnproto package really soon if not now, due to patches we're doing to it. need to check details though.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The library is already used by Lix itself. This only adds the dependency to nix-eval-jobs which started depending on canproto headers due to the async changes. If a special capnproto build is needed that could be handled similar to boehmgc, aws-sdk-cpp and editline so that it is picked up by both.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah okay! that should be fine then. we could potentially address this need via propagated build inputs as well; the only reason i was a little shaky on wanting to do it as propagated is that it would also affect derivations using lix only for the cli. either approach is fine.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct, I think it might even have been me who suggested making it propagated. I decided to add it to nix-eval-jobs for now at least since that's also done in the vendored packaging. |
||
| ]; | ||
| nativeBuildInputs = [ | ||
| meson | ||
| pkg-config | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.