pass inputs to packages.nix

This commit is contained in:
Max Headroom 2022-03-17 20:02:48 +01:00
parent 69db138349
commit 5a9812bff6
3 changed files with 5 additions and 6 deletions

View file

@ -84,8 +84,7 @@
};
packages.${system} = import ./packages {
nixpkgs = pkgs;
inherit inputs;
inherit inputs pkgs;
};
defaultApp.${system} = {

View file

@ -1,8 +1,8 @@
{ nixpkgs, inputs }:
{ pkgs, inputs }@args:
let
patched-derivations = import ./patched-derivations.nix nixpkgs;
patched-derivations = import ./patched-derivations.nix pkgs;
patched-inputs = import ./patched-inputs.nix inputs;
packages = import ./packages.nix nixpkgs;
packages = import ./packages.nix args;
in patched-derivations
// patched-inputs
// packages

View file

@ -1,4 +1,4 @@
pkgs: {
{ inputs, pkgs }: {
privatevoid-smart-card-ca-bundle = pkgs.callPackage ./data/privatevoid-smart-card-certificate-authority-bundle.nix { };
jdtls = pkgs.callPackage ./development/langservers/jdtls.nix { };