Migrate to Nix flake

This commit is contained in:
Loic Nageleisen 2024-10-18 20:28:01 +02:00
parent b780b2ce34
commit 037c5a13c3
Signed by: lloeki
GPG key ID: D05DAEE6889F94C2
6 changed files with 118 additions and 10 deletions

20
flake.nix Normal file
View file

@ -0,0 +1,20 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/master";
flake-utils.url = "github:numtide/flake-utils";
flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz";
};
outputs = { self, nixpkgs, flake-utils, flake-compat }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in {
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
shellcheck
];
};
}
);
}