Skip to content

Instantly share code, notes, and snippets.

@dhess
Last active January 6, 2018 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhess/3f09460bb7fc4c4bc98e9fd2e56960cb to your computer and use it in GitHub Desktop.
Save dhess/3f09460bb7fc4c4bc98e9fd2e56960cb to your computer and use it in GitHub Desktop.
$ nix-repl jobsets/release.nix
Welcome to Nix version 1.11.16. Type :? for help.
Loading ‘jobsets/release.nix’...
Added 2 variables.
nix-repl> ansible-env
{ }
nix-repl>
let
fixedNixPkgs = (import ../lib.nix).fetchNixPkgs;
in
{ supportedSystems ? [ "x86_64-darwin" ]
, scrubJobs ? true
, nixpkgsArgs ? {
config = { allowUnfree = true; allowBroken = true; inHydra = true; };
overlays = [ (import ../.) ];
}
}:
with import (fixedNixPkgs + "/pkgs/top-level/release-lib.nix") {
inherit supportedSystems scrubJobs nixpkgsArgs;
};
let
jobs = {
x86_64-darwin = pkgs.releaseTools.aggregate {
name = "nixpkgs-dhess-x86_64-darwin";
meta.description = "nixpkgs-dhess overlay packages (x86_64-darwin)";
meta.maintainer = lib.maintainers.dhess;
constituents = with jobs; [
emacs.x86_64-darwin
haskellPackages.fm-assistant.x86_64-darwin
haskellPackages.dhess-ssh-keygen.x86_64-darwin
xtensa-esp32-toolchain.x86_64-darwin
];
};
} // (mapTestOn ((packagePlatforms pkgs) // rec {
haskell.compiler = packagePlatforms pkgs.haskell.compiler;
haskellPackages = packagePlatforms pkgs.haskellPackages;
}));
in
{
inherit (jobs) x86_64-darwin;
inherit (jobs) ansible-env;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment