From 5b017ae4ffe76aff15aff36082f9611116e04dba Mon Sep 17 00:00:00 2001 From: "Yann Esposito (Yogsototh)" Date: Mon, 26 Sep 2022 14:10:24 +0200 Subject: [PATCH] Try to use a shell.nix See: https://ghedam.at/a-tour-of-nix-flakes --- flake.nix | 8 +------- shell.nix | 11 +++++++++++ 2 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 shell.nix diff --git a/flake.nix b/flake.nix index 4d6daaf..21b227a 100644 --- a/flake.nix +++ b/flake.nix @@ -7,13 +7,7 @@ flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; in rec { - devShell = pkgs.mkShell { - buildInputs = with pkgs; [ lessc minify ]; - - shellHook = '' - echo "shell with lessc and minify" - ''; - }; + devShell = import ./shell.nix {inherit pkgs; }; } ); } diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..ce3880c --- /dev/null +++ b/shell.nix @@ -0,0 +1,11 @@ +{ pkgs ? import {} }: +with pkgs; +mkShell { + buildInputs = [ + lessc + minify + ]; + shellHook = '' + echo "shell with lessc and minify" + ''; +}