Allowing direct package use in manual expression
svn path=/nixos/trunk/; revision=13724
This commit is contained in:
parent
32adf2c521
commit
aa393f816c
@ -1,8 +1,10 @@
|
|||||||
{nixpkgsPath ? ../../../nixpkgs}:
|
{nixpkgsPath ? ../../../nixpkgs, pkgs ? null}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
pkgs = import "${nixpkgsPath}/pkgs/top-level/all-packages.nix" {};
|
pkgs = if pkgs == null then
|
||||||
|
import "${nixpkgsPath}/pkgs/top-level/all-packages.nix" {}
|
||||||
|
else pkgs;
|
||||||
|
|
||||||
options = builtins.toFile "options.xml" (builtins.unsafeDiscardStringContext
|
options = builtins.toFile "options.xml" (builtins.unsafeDiscardStringContext
|
||||||
(builtins.toXML (pkgs.lib.optionAttrSetToDocList ""
|
(builtins.toXML (pkgs.lib.optionAttrSetToDocList ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user