1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

Build nix-util-c with meson and unit test

This commit is contained in:
Robert Hensing 2024-06-25 15:35:47 +02:00
parent 5f4f789144
commit ac89828b5a
16 changed files with 750 additions and 1 deletions

View file

@ -160,6 +160,19 @@
};
});
# TODO: define everything here instead of top level?
nix-components = {
inherit (final)
nix-util
nix-util-test-support
nix-util-test
nix-util-c
nix-store
nix-fetchers
nix-perl-bindings
;
};
nix-util = final.callPackage ./src/libutil/package.nix {
inherit
fileset
@ -169,6 +182,30 @@
;
};
nix-util-test-support = final.callPackage ./tests/unit/libutil-support/package.nix {
inherit
fileset
stdenv
versionSuffix
;
};
nix-util-test = final.callPackage ./tests/unit/libutil/package.nix {
inherit
fileset
stdenv
versionSuffix
;
};
nix-util-c = final.callPackage ./src/libutil-c/package.nix {
inherit
fileset
stdenv
versionSuffix
;
};
nix-store = final.callPackage ./src/libstore/package.nix {
inherit
fileset
@ -281,7 +318,19 @@
# the old build system is gone and we are back to one build
# system, we should reenable this.
#perlBindings = self.hydraJobs.perlBindings.${system};
} // devFlake.checks.${system} or {}
}
// lib.concatMapAttrs (nixpkgsPrefix: nixpkgs:
lib.concatMapAttrs (pkgName: pkg:
lib.concatMapAttrs (testName: test: {
# Add "passthru" tests
"${nixpkgsPrefix}${pkgName}-${testName}" = test;
}) pkg.tests or {}
) nixpkgs.nix-components
) {
"" = nixpkgsFor.${system}.native;
"static-" = nixpkgsFor.${system}.static;
}
// devFlake.checks.${system} or {}
);
packages = forAllSystems (system: {