resync hydra with upstream #4
27
flake.nix
27
flake.nix
@ -34,7 +34,6 @@
|
|||||||
hydra = final.callPackage ./package.nix {
|
hydra = final.callPackage ./package.nix {
|
||||||
inherit (nixpkgs.lib) fileset;
|
inherit (nixpkgs.lib) fileset;
|
||||||
rawSrc = self;
|
rawSrc = self;
|
||||||
nix-perl-bindings = final.nixComponents.nix-perl-bindings;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -73,21 +72,29 @@
|
|||||||
validate-openapi = hydraJobs.tests.validate-openapi.${system};
|
validate-openapi = hydraJobs.tests.validate-openapi.${system};
|
||||||
});
|
});
|
||||||
|
|
||||||
packages = forEachSystem (system: {
|
packages = forEachSystem (system: let
|
||||||
nix-eval-jobs = nixpkgs.legacyPackages.${system}.callPackage nix-eval-jobs {
|
nixComponents = {
|
||||||
nix = nix.packages.${system}.nix;
|
|
||||||
};
|
|
||||||
hydra = nixpkgs.legacyPackages.${system}.callPackage ./package.nix {
|
|
||||||
inherit (nixpkgs.lib) fileset;
|
|
||||||
inherit (self.packages.${system}) nix-eval-jobs;
|
|
||||||
rawSrc = self;
|
|
||||||
inherit (nix.packages.${system})
|
inherit (nix.packages.${system})
|
||||||
nix-util
|
nix-util
|
||||||
nix-store
|
nix-store
|
||||||
|
nix-expr
|
||||||
|
nix-fetchers
|
||||||
|
nix-flake
|
||||||
nix-main
|
nix-main
|
||||||
|
nix-cmd
|
||||||
nix-cli
|
nix-cli
|
||||||
|
nix-perl-bindings
|
||||||
;
|
;
|
||||||
nix-perl-bindings = nix.hydraJobs.perlBindings.${system};
|
};
|
||||||
|
in {
|
||||||
|
nix-eval-jobs = nixpkgs.legacyPackages.${system}.callPackage nix-eval-jobs {
|
||||||
|
inherit nixComponents;
|
||||||
|
};
|
||||||
|
hydra = nixpkgs.legacyPackages.${system}.callPackage ./package.nix {
|
||||||
|
inherit (nixpkgs.lib) fileset;
|
||||||
|
inherit nixComponents;
|
||||||
|
inherit (self.packages.${system}) nix-eval-jobs;
|
||||||
|
rawSrc = self;
|
||||||
};
|
};
|
||||||
default = self.packages.${system}.hydra;
|
default = self.packages.${system}.hydra;
|
||||||
});
|
});
|
||||||
|
22
package.nix
22
package.nix
@ -8,11 +8,7 @@
|
|||||||
|
|
||||||
, perlPackages
|
, perlPackages
|
||||||
|
|
||||||
, nix-util
|
, nixComponents
|
||||||
, nix-store
|
|
||||||
, nix-main
|
|
||||||
, nix-cli
|
|
||||||
, nix-perl-bindings
|
|
||||||
, git
|
, git
|
||||||
|
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
@ -65,7 +61,7 @@ let
|
|||||||
name = "hydra-perl-deps";
|
name = "hydra-perl-deps";
|
||||||
paths = lib.closePropagation
|
paths = lib.closePropagation
|
||||||
([
|
([
|
||||||
nix-perl-bindings
|
nixComponents.nix-perl-bindings
|
||||||
git
|
git
|
||||||
] ++ (with perlPackages; [
|
] ++ (with perlPackages; [
|
||||||
AuthenSASL
|
AuthenSASL
|
||||||
@ -165,7 +161,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
nukeReferences
|
nukeReferences
|
||||||
pkg-config
|
pkg-config
|
||||||
mdbook
|
mdbook
|
||||||
nix-cli
|
nixComponents.nix-cli
|
||||||
perlDeps
|
perlDeps
|
||||||
perl
|
perl
|
||||||
unzip
|
unzip
|
||||||
@ -175,9 +171,9 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
libpqxx
|
libpqxx
|
||||||
openssl
|
openssl
|
||||||
libxslt
|
libxslt
|
||||||
nix-util
|
nixComponents.nix-util
|
||||||
nix-store
|
nixComponents.nix-store
|
||||||
nix-main
|
nixComponents.nix-main
|
||||||
perlDeps
|
perlDeps
|
||||||
perl
|
perl
|
||||||
boost
|
boost
|
||||||
@ -204,14 +200,14 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
glibcLocales
|
glibcLocales
|
||||||
libressl.nc
|
libressl.nc
|
||||||
python3
|
python3
|
||||||
nix-cli
|
nixComponents.nix-cli
|
||||||
];
|
];
|
||||||
|
|
||||||
hydraPath = lib.makeBinPath (
|
hydraPath = lib.makeBinPath (
|
||||||
[
|
[
|
||||||
subversion
|
subversion
|
||||||
openssh
|
openssh
|
||||||
nix-cli
|
nixComponents.nix-cli
|
||||||
coreutils
|
coreutils
|
||||||
findutils
|
findutils
|
||||||
pixz
|
pixz
|
||||||
@ -272,7 +268,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
--prefix PATH ':' $out/bin:$hydraPath \
|
--prefix PATH ':' $out/bin:$hydraPath \
|
||||||
--set HYDRA_RELEASE ${version} \
|
--set HYDRA_RELEASE ${version} \
|
||||||
--set HYDRA_HOME $out/libexec/hydra \
|
--set HYDRA_HOME $out/libexec/hydra \
|
||||||
--set NIX_RELEASE ${nix-cli.name or "unknown"} \
|
--set NIX_RELEASE ${nixComponents.nix-cli.name or "unknown"} \
|
||||||
--set NIX_EVAL_JOBS_RELEASE ${nix-eval-jobs.name or "unknown"}
|
--set NIX_EVAL_JOBS_RELEASE ${nix-eval-jobs.name or "unknown"}
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user