From 9dca671d0e1608f8420381bfb3ecd938b7c7bbb7 Mon Sep 17 00:00:00 2001 From: Archit Gupta Date: Mon, 20 May 2024 20:42:53 -0700 Subject: [PATCH] Pass inputs in examples --- API_GUIDE.md | 13 ------------- README.md | 1 + 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/API_GUIDE.md b/API_GUIDE.md index 87a0a30..fe71e3b 100644 --- a/API_GUIDE.md +++ b/API_GUIDE.md @@ -109,19 +109,6 @@ To use a different nixpkgs from the built-in default: nixpkgs.url = "nixpkgs/nixpkgs-unstable"; }; outputs = { flakelight, ... }: - flakelight ./. { }; -} -``` - -You can also explicitly pass in inputs, overriding defaults, as follows: - -```nix -{ - inputs = { - nixpkgs.url = "nixpkgs/nixpkgs-unstable"; - flakelight.url = "github:nix-community/flakelight"; - }; - outputs = { flakelight, ... }@inputs: flakelight ./. { inherit inputs; }; diff --git a/README.md b/README.md index e2c059e..b622a0c 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ To use a different nixpkgs, you can instead use: }; outputs = { flakelight, ... }: flakelight ./. { + inherit inputs; devShell.packages = pkgs: [ pkgs.hello pkgs.coreutils ]; }; }