mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
28 lines
961 B
Nix
28 lines
961 B
Nix
{
|
|
description = "A faster, persistent implementation of `direnv`'s `use_nix`, to replace the built-in one.";
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system: let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in {
|
|
packages = {
|
|
default = pkgs.callPackage ./default.nix { };
|
|
test-runner = pkgs.callPackage ./run-tests.nix {};
|
|
};
|
|
devShells.default = pkgs.callPackage ./shell.nix { };
|
|
apps.test-runner = {
|
|
type = "app";
|
|
program = "${self.packages.${system}.test-runner}";
|
|
};
|
|
}) // {
|
|
overlay = final: prev: {
|
|
nix-direnv = final.callPackage ./default.nix { };
|
|
};
|
|
templates.default = {
|
|
path = ./templates/flake;
|
|
description = "nix flake new -t github:Mic92/nix-direnv .";
|
|
};
|
|
};
|
|
}
|