mirror of
https://github.com/NixOS/nix
synced 2025-07-02 13:31:48 +02:00
WIP
This commit is contained in:
parent
0ca49b0c86
commit
ce598bae14
5 changed files with 117 additions and 100 deletions
|
@ -6,45 +6,10 @@
|
|||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
NIX_DAEMON_PACKAGE = daemon;
|
||||
NIX_CLIENT_PACKAGE = client;
|
||||
name =
|
||||
"nix-tests"
|
||||
+ lib.optionalString
|
||||
(lib.versionAtLeast daemon.version "2.4pre20211005" &&
|
||||
lib.versionAtLeast client.version "2.4pre20211005")
|
||||
"-${client.version}-against-${daemon.version}";
|
||||
|
||||
inherit (client)
|
||||
version
|
||||
VERSION_SUFFIX
|
||||
nativeBuildInputs
|
||||
buildInputs
|
||||
propagatedBuildInputs
|
||||
;
|
||||
|
||||
src = fileset.toSource {
|
||||
root = ./.;
|
||||
fileset = with client.passthru.filesets;
|
||||
fileset.intersect baseFiles (fileset.unions [
|
||||
configureFiles
|
||||
topLevelBuildFiles
|
||||
functionalTestFiles
|
||||
]);
|
||||
};
|
||||
|
||||
configureFlags = client.configureFlags # otherwise configure fails
|
||||
++ [ "--disable-build" ];
|
||||
|
||||
dontBuild = true;
|
||||
doInstallCheck = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
'';
|
||||
|
||||
installCheckPhase = ''
|
||||
mkdir -p src/nix-channel
|
||||
make installcheck -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue