🔧 convert to nix flake

This commit is contained in:
2022-05-22 22:09:24 -04:00
parent 25ec6f39c9
commit a98d6e2e0a
5 changed files with 100 additions and 8 deletions

25
flake.nix Normal file
View File

@@ -0,0 +1,25 @@
{
description = "walkah.net";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem
(system:
let pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [ ruby nodejs ];
};
}
);
}