From 92728b002b5482d82fddd29d01a5f57472c0321b Mon Sep 17 00:00:00 2001 From: zimbatm Date: Tue, 24 Dec 2019 11:21:54 +0100 Subject: [PATCH] nix: make composable allow users to import the repo and then inject their own version of nixpkgs. For example with [niv][niv]: $ niv add juliosueiras/terraform-lsp Then in the target project's overlay.nix: self: super: { sources = import ./nix/sources.nix; terraform-lsp = self.callPackage sources.terraform-lsp {}; } [niv]: https://github.com/nmattia/niv --- default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 1e9044e..85908c0 100644 --- a/default.nix +++ b/default.nix @@ -1,4 +1,5 @@ -with import {}; +{ pkgs ? import {} }: +with pkgs; buildGo112Module rec {