forked from lix-project/hydra
release.nix: Use fetchGit to get Nixpkgs
This commit is contained in:
parent
7f6d52f4c3
commit
821f8bf5a0
13
release.nix
13
release.nix
|
@ -1,13 +1,14 @@
|
|||
{ hydraSrc ? { outPath = ./.; revCount = 1234; rev = "abcdef"; }
|
||||
, nixpkgs ? builtins.fetchGit { url = https://github.com/NixOS/nixpkgs-channels.git; ref = "nixos-18.03"; }
|
||||
, officialRelease ? false
|
||||
, shell ? false
|
||||
}:
|
||||
|
||||
with import <nixpkgs/lib>;
|
||||
with import (nixpkgs + "/lib");
|
||||
|
||||
let
|
||||
|
||||
pkgs = import <nixpkgs> {};
|
||||
pkgs = import nixpkgs {};
|
||||
|
||||
genAttrs' = genAttrs [ "x86_64-linux" /* "i686-linux" */ ];
|
||||
|
||||
|
@ -37,7 +38,7 @@ rec {
|
|||
|
||||
build = genAttrs' (system:
|
||||
|
||||
with import <nixpkgs> { inherit system; };
|
||||
with import nixpkgs { inherit system; };
|
||||
|
||||
let
|
||||
|
||||
|
@ -170,7 +171,7 @@ rec {
|
|||
'';
|
||||
|
||||
tests.install = genAttrs' (system:
|
||||
with import <nixpkgs/nixos/lib/testing.nix> { inherit system; };
|
||||
with import (nixpkgs + "/nixos/lib/testing.nix") { inherit system; };
|
||||
simpleTest {
|
||||
machine = hydraServer build.${system};
|
||||
testScript =
|
||||
|
@ -185,7 +186,7 @@ rec {
|
|||
});
|
||||
|
||||
tests.api = genAttrs' (system:
|
||||
with import <nixpkgs/nixos/lib/testing.nix> { inherit system; };
|
||||
with import (nixpkgs + "/nixos/lib/testing.nix") { inherit system; };
|
||||
simpleTest {
|
||||
machine = hydraServer build.${system};
|
||||
testScript =
|
||||
|
@ -214,7 +215,7 @@ rec {
|
|||
|
||||
/*
|
||||
tests.s3backup = genAttrs' (system:
|
||||
with import <nixpkgs/nixos/lib/testing.nix> { inherit system; };
|
||||
with import (nixpkgs + "/nixos/lib/testing.nix") { inherit system; };
|
||||
let hydra = build.${system}
|
||||
simpleTest {
|
||||
machine =
|
||||
|
|
Loading…
Reference in a new issue