Try to use a shell.nix

See: https://ghedam.at/a-tour-of-nix-flakes
This commit is contained in:
Yann Esposito (Yogsototh) 2022-09-26 14:10:24 +02:00
parent 6bf080c26c
commit 5b017ae4ff
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646
2 changed files with 12 additions and 7 deletions

View file

@ -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; };
}
);
}

11
shell.nix Normal file
View file

@ -0,0 +1,11 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
mkShell {
buildInputs = [
lessc
minify
];
shellHook = ''
echo "shell with lessc and minify"
'';
}