Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

Allow passing in package set in standalone mode #5

Open
tazjin opened this issue May 15, 2018 · 0 comments
Open

Allow passing in package set in standalone mode #5

tazjin opened this issue May 15, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@tazjin
Copy link
Owner

tazjin commented May 15, 2018

The current preamble in standalone-mode looks like this:

with import <nixpkgs> {};

At work we usually write derivations that can be built standalone
(using just nix-build [-A foo]), but that receive a package set as a
parameter when built as part of a deployment.

An easy way to achieve this that does not break previous behaviour is
letting the preamble look like this instead:

{ pkgs ? import <nixpkgs> {}}: with pkgs;

A fix for this is applied on the devel branch.

@tazjin tazjin added the enhancement New feature or request label May 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant