summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortilpner2018-12-16 18:13:52 +0100
committertilpner2018-12-16 18:13:52 +0100
commit301227dd0b8f53020ce8a3a02b8a93ea77f55b0b (patch)
tree35108053b546c15fb6b9c09716b7a831a37fead2
parentae949960557e9ab9272dcc9be351eb3562d06e71 (diff)
downloadjobsets-301227dd0b8f53020ce8a3a02b8a93ea77f55b0b.tar.gz
jobsets-301227dd0b8f53020ce8a3a02b8a93ea77f55b0b.tar.xz
jobsets-301227dd0b8f53020ce8a3a02b8a93ea77f55b0b.zip
Add jobset-nixpkgs.nix
-rw-r--r--jobset-nixpkgs.nix21
-rw-r--r--spec.json2
2 files changed, 22 insertions, 1 deletions
diff --git a/jobset-nixpkgs.nix b/jobset-nixpkgs.nix
new file mode 100644
index 0000000..c824fcb
--- /dev/null
+++ b/jobset-nixpkgs.nix
@@ -0,0 +1,21 @@
+{ supportedSystems ? ["i686-linux" "x86_64-linux"] }:
+
+with (import <nixpkgs/pkgs/top-level/release-lib.nix> { inherit supportedSystems; });
+
+{
+
+ # Simply assign a derivation to an attribute to have it built.
+ hello_world_1 = pkgs_x86_64_linux.hello;
+
+ # 'hydraJob' strips all non-essential attributes.
+ hello_world_2 = pkgs.lib.hydraJob pkgs_x86_64_linux.hello;
+
+ # Generate one attribute per supported platform.
+ hello_world_3 = pkgs.lib.genAttrs supportedSystems (system: (pkgsFor system).hello);
+
+} // mapTestOn {
+
+ # Fancy shortcut to generate one attribute per supported platform.
+ hello = supportedSystems;
+
+} \ No newline at end of file
diff --git a/spec.json b/spec.json
index 7e3ec61..914f7a0 100644
--- a/spec.json
+++ b/spec.json
@@ -3,7 +3,7 @@
"hidden": false,
"description": "cfg",
"nixexprinput": "src",
- "nixexprpath": "default.nix",
+ "nixexprpath": "jobset-nixpkgs.nix",
"checkinterval": 60,
"schedulingshares": 100,
"enableemail": false,