Hydra: Difference between revisions
imported>Makefu No edit summary |
imported>Makefu |
||
Line 33: | Line 33: | ||
=== Build a single Package from nixpkgs === | === Build a single Package from nixpkgs === | ||
Right now it is not possible to build a single package from nixpkgs with just that input. You will need to provide a supplementary repository which defines what to build. For examples you can check the [https://github.com/makefu/hydra-example hydra-example by makefu] and in the [https://nixos.org/hydra/manual/#idm140737315920320 Hydra Manual]. | |||
==== Imperative Building ==== | |||
These steps are required to build the <code>hello</code> package. | |||
# log into hydra after creating a user with <code>hydra-create-user</code> | |||
# create new project | |||
* identifier: example-hello | |||
* display name: example-hello | |||
# Actions -> Create jobset | |||
* identifier: hello | |||
* Nix expression: <code>release.nix</code> in <code>hydra-example</code> -> will evaluate the file release.nix in the given input | |||
* check interval: 60 | |||
* scheduling shares: 1 | |||
* Input name:<code>nixpkgs</code>, type:<code>git checkout</code>, value: <code>https://github.com/nixos/nixpkgs-channels nixos-17.09</code> - will check out branch nixos-17.09 | |||
* Input name:<code>hydra-example</code>, type:<code>git checkout</code>, value: <code>https://github.com/makefu/hydra-example</code> | |||
== Internals == | == Internals == |