flake.nix: Import shell.nix as devShell

This commit is contained in:
Michael Hoang 2021-12-06 15:19:49 +11:00
parent 69bec056fb
commit 7c9a7b7595
2 changed files with 5 additions and 2 deletions

View file

@ -8,6 +8,7 @@
pkgs = nixpkgs.legacyPackages.${system};
in {
defaultPackage = pkgs.callPackage ./default.nix { };
devShell = pkgs.callPackage ./shell.nix { };
}) // {
overlay = final: prev: {
nix-direnv = final.callPackage ./default.nix { };

View file

@ -1,4 +1,6 @@
with import <nixpkgs> {};
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
mkShell {
nativeBuildInputs = [
python3