.github
datadog
doc
examples
foreman
nixos-modules
src
t
Helper
Hydra
content-addressed
evaluator
input-types
jobs
declarative
dependencies
flake-checks
flake-hydraJobs
aggregate.nix
api-test.nix
basic.nix
broken-constituent.nix
build-output-as-input.nix
build-product-simple.sh
build-product-with-spaces.sh
build-products.nix
bzr-checkout-input.nix
bzr-checkout-update.sh
bzr-input.nix
bzr-update.sh
config.nix.in
constituents-broken.nix
constituents.nix
content-addressed.nix
darcs-input.nix
darcs-update.sh
deepgit-builder.sh
deepgit-input.nix
default-machine-file.nix
dir-with-file-builder.sh
empty-dir-builder.sh
fail.sh
git-input.nix
git-rev-input.nix
git-rev-update.sh
git-update.sh
hg-input.nix
hg-update.sh
hydra-eval-notifications.nix
meta.nix
nested-attributes.nix
notifications.nix
one-job.nix
oom.nix
runcommand-dynamic.nix
runcommand.nix
scm-builder.sh
server.py
succeed-with-failed.sh
svn-checkout-input.nix
svn-checkout-update.sh
svn-input.nix
svn-update.sh
lib
queue-runner
scripts
api-test.t
build-products.t
meson.build
perlcritic.pl
s3-backup-test.config
s3-backup-test.pl
setup-notifications-jobset.pl
test.pl
.editorconfig
.gitignore
.perlcriticrc
COPYING
INSTALL
Procfile
README.md
default.nix
flake.lock
flake.nix
hydra-api.yaml
meson.build
nixos-tests.nix
package.nix
shell.nix
version.txt
31 lines
868 B
Nix
31 lines
868 B
Nix
# This file gets copied around, and intentionally does not refer to
|
|
# anything but itself as "default.nix".
|
|
|
|
let
|
|
simpleDerivation = name: builderText: derivation {
|
|
inherit name;
|
|
system = builtins.currentSystem;
|
|
builder = "/bin/sh";
|
|
args = [
|
|
(builtins.toFile "builder.sh" builderText)
|
|
];
|
|
};
|
|
in
|
|
{
|
|
stable-job-queued = simpleDerivation "stable-job-queued" ''
|
|
echo "here is a stable job that passes every time" > $out
|
|
'';
|
|
|
|
stable-job-passing = simpleDerivation "stable-job-passing" ''
|
|
echo "here is a stable job that passes every time" > $out
|
|
'';
|
|
|
|
stable-job-failing = simpleDerivation "stable-job-failing" ''
|
|
echo "this job is a stable job that fails every time" > $out
|
|
'';
|
|
|
|
variable-job = simpleDerivation "variable-job" ''
|
|
echo ${builtins.toFile "default.nix" (builtins.readFile ./default.nix)} > $out
|
|
'';
|
|
}
|