1
0
Fork 0
forked from auxolotl/templates
auxolotl-templates/direnv/flake.nix
2024-05-03 12:06:45 +05:30

27 lines
595 B
Nix

{
description = "An empty devshell with direnv support";
inputs.nixpkgs.url = "github:auxolotl/nixpkgs/nixpkgs-unstable";
outputs =
{ nixpkgs, ... }:
let
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ pkgs.hello ];
IN_SHELL = "yes!";
};
});
};
}