From 016fffc01e9122b3fbd95390bee5360dec34b522 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Thu, 30 Nov 2017 08:05:26 -0500 Subject: [PATCH] Make a hydra-compatible job --- default.nix | 3 ++- release.nix | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 release.nix diff --git a/default.nix b/default.nix index 8920f9f..0b6bd00 100644 --- a/default.nix +++ b/default.nix @@ -1,4 +1,5 @@ -{ pkgs ? import ./nix {} }: +{ pkgs ? import ./nix {} +}: { ofborg.rs = (pkgs.callPackage ./nix/ofborg-carnix.nix {}).ofborg_0_1_0; } diff --git a/release.nix b/release.nix new file mode 100644 index 0000000..19e569e --- /dev/null +++ b/release.nix @@ -0,0 +1,11 @@ +{ nixpkgs ? ./nix +, supportedSystems ? [ "x86_64-linux" "x86_64-darwin" ] +}: +let + pkgs = import nixpkgs {}; + inherit (pkgs) lib; + + ofborgpkgs = lib.genAttrs supportedSystems (system: + (import ./default.nix { pkgs = import nixpkgs { inherit system; }; }) + ); +in ofborgpkgs