Skip to content

Commit

Permalink
pass local flake's inputs to devenv import
Browse files Browse the repository at this point in the history
  • Loading branch information
jashan-lco committed Dec 20, 2023
1 parent f863c33 commit de909fa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 5 additions & 2 deletions flake-module.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
localFlake:
{ inputs, ... }:
{ ... }:
let
devenvModule = { ... }@args: localFlake.inputs.devenv.flakeModule (args // {inputs = localFlake.inputs // args.inputs;});
in
{
imports = [
localFlake.inputs.devenv.flakeModule
devenvModule
];

perSystem = { system, pkgs, ... }: {
Expand Down
5 changes: 3 additions & 2 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
devenv.url = "github:cachix/devenv";
nix2container.url = "github:nlewo/nix2container";
nix2container.inputs.nixpkgs.follows = "nixpkgs";
Expand Down

0 comments on commit de909fa

Please sign in to comment.