From 301227dd0b8f53020ce8a3a02b8a93ea77f55b0b Mon Sep 17 00:00:00 2001 From: tilpner Date: Sun, 16 Dec 2018 18:13:52 +0100 Subject: Add jobset-nixpkgs.nix --- jobset-nixpkgs.nix | 21 +++++++++++++++++++++ spec.json | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 jobset-nixpkgs.nix 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 { 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, -- cgit v1.2.3