mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-16 15:17:18 +02:00
move more declarations
This commit is contained in:
parent
5fde77b166
commit
0067f49e87
2 changed files with 24 additions and 28 deletions
|
@ -2,16 +2,36 @@
|
||||||
, binaryTarball
|
, binaryTarball
|
||||||
, forAllCrossSystems
|
, forAllCrossSystems
|
||||||
, forAllSystems
|
, forAllSystems
|
||||||
, installScriptFor
|
|
||||||
, lib
|
, lib
|
||||||
, linux64BitSystems
|
, linux64BitSystems
|
||||||
, nixpkgsFor
|
, nixpkgsFor
|
||||||
, self
|
, self
|
||||||
, testNixVersions
|
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inherit (inputs) nixpkgs nixpkgs-regression;
|
inherit (inputs) nixpkgs nixpkgs-regression;
|
||||||
inherit (lib) fileset;
|
inherit (lib) fileset;
|
||||||
|
|
||||||
|
installScriptFor = tarballs:
|
||||||
|
nixpkgsFor.x86_64-linux.native.callPackage ./scripts/installer.nix {
|
||||||
|
inherit tarballs;
|
||||||
|
};
|
||||||
|
|
||||||
|
testNixVersions = pkgs: client: daemon:
|
||||||
|
pkgs.callPackage ../package.nix {
|
||||||
|
pname =
|
||||||
|
"nix-tests"
|
||||||
|
+ lib.optionalString
|
||||||
|
(lib.versionAtLeast daemon.version "2.4pre20211005" &&
|
||||||
|
lib.versionAtLeast client.version "2.4pre20211005")
|
||||||
|
"-${client.version}-against-${daemon.version}";
|
||||||
|
|
||||||
|
inherit fileset;
|
||||||
|
|
||||||
|
test-client = client;
|
||||||
|
test-daemon = daemon;
|
||||||
|
|
||||||
|
doBuild = false;
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
hydraJobs = {
|
hydraJobs = {
|
||||||
|
@ -96,14 +116,14 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
# API docs for Nix's unstable internal C++ interfaces.
|
# API docs for Nix's unstable internal C++ interfaces.
|
||||||
internal-api-docs = nixpkgsFor.x86_64-linux.native.callPackage ./package.nix {
|
internal-api-docs = nixpkgsFor.x86_64-linux.native.callPackage ../package.nix {
|
||||||
inherit fileset;
|
inherit fileset;
|
||||||
doBuild = false;
|
doBuild = false;
|
||||||
enableInternalAPIDocs = true;
|
enableInternalAPIDocs = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# API docs for Nix's C bindings.
|
# API docs for Nix's C bindings.
|
||||||
external-api-docs = nixpkgsFor.x86_64-linux.native.callPackage ./package.nix {
|
external-api-docs = nixpkgsFor.x86_64-linux.native.callPackage ../package.nix {
|
||||||
inherit fileset;
|
inherit fileset;
|
||||||
doBuild = false;
|
doBuild = false;
|
||||||
enableExternalAPIDocs = true;
|
enableExternalAPIDocs = true;
|
||||||
|
|
24
flake.nix
24
flake.nix
|
@ -104,28 +104,6 @@
|
||||||
cross = forAllCrossSystems (crossSystem: make-pkgs crossSystem "stdenv");
|
cross = forAllCrossSystems (crossSystem: make-pkgs crossSystem "stdenv");
|
||||||
});
|
});
|
||||||
|
|
||||||
installScriptFor = tarballs:
|
|
||||||
nixpkgsFor.x86_64-linux.native.callPackage ./scripts/installer.nix {
|
|
||||||
inherit tarballs;
|
|
||||||
};
|
|
||||||
|
|
||||||
testNixVersions = pkgs: client: daemon:
|
|
||||||
pkgs.callPackage ./package.nix {
|
|
||||||
pname =
|
|
||||||
"nix-tests"
|
|
||||||
+ lib.optionalString
|
|
||||||
(lib.versionAtLeast daemon.version "2.4pre20211005" &&
|
|
||||||
lib.versionAtLeast client.version "2.4pre20211005")
|
|
||||||
"-${client.version}-against-${daemon.version}";
|
|
||||||
|
|
||||||
inherit fileset;
|
|
||||||
|
|
||||||
test-client = client;
|
|
||||||
test-daemon = daemon;
|
|
||||||
|
|
||||||
doBuild = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
binaryTarball = nix: pkgs: pkgs.callPackage ./scripts/binary-tarball.nix {
|
binaryTarball = nix: pkgs: pkgs.callPackage ./scripts/binary-tarball.nix {
|
||||||
inherit nix;
|
inherit nix;
|
||||||
};
|
};
|
||||||
|
@ -238,12 +216,10 @@
|
||||||
binaryTarball
|
binaryTarball
|
||||||
forAllCrossSystems
|
forAllCrossSystems
|
||||||
forAllSystems
|
forAllSystems
|
||||||
installScriptFor
|
|
||||||
lib
|
lib
|
||||||
linux64BitSystems
|
linux64BitSystems
|
||||||
nixpkgsFor
|
nixpkgsFor
|
||||||
self
|
self
|
||||||
testNixVersions
|
|
||||||
;
|
;
|
||||||
}) hydraJobs;
|
}) hydraJobs;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue