Reformat all projects; switch to overlay format

This commit is contained in:
Luc Perkins 2022-08-20 15:54:34 +03:00
parent bf45826289
commit fca8041d90
No known key found for this signature in database
GPG key ID: 4F102D0C16E232F2
30 changed files with 532 additions and 600 deletions

View file

@ -6,23 +6,23 @@
nixpkgs.url = "github:NixOS/nixpkgs";
};
outputs = { self, flake-utils, nixpkgs }:
outputs =
{ self
, flake-utils
, nixpkgs
}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
inherit (pkgs) mkShell;
let
pkgs = import nixpkgs { inherit system; };
in
{
devShell = pkgs.mkShell {
buildInputs = (with pkgs.elmPackages; [ elm ]) ++ (with pkgs; [ elm2nix ]);
elm = pkgs.elmPackages.elm;
in
{
devShells = {
default = mkShell {
buildInputs = [ elm ] ++ (with pkgs; [ elm2nix ]);
shellHook = ''
echo "elm `${elm}/bin/elm --version`"
'';
};
};
});
shellHook = with pkgs.elmPackages; ''
echo "elm `${elm}/bin/elm --version`"
'';
};
});
}