net/flake.nix

33 lines
774 B
Nix
Raw Normal View History

2022-05-22 22:09:24 -04:00
{
description = "walkah.net";
inputs = {
2023-10-14 12:42:11 -04:00
nixpkgs.url = "github:nixos/nixpkgs/release-23.05";
2022-05-22 22:09:24 -04:00
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
2023-10-14 12:42:11 -04:00
outputs = { nixpkgs, flake-utils, ... }:
2022-05-22 22:09:24 -04:00
flake-utils.lib.eachDefaultSystem
(system:
let pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
2023-10-14 12:42:11 -04:00
buildInputs = with pkgs; [ libyaml nodejs ruby ];
2022-05-26 21:42:09 -04:00
shellHook = ''
mkdir -p .gems
export GEM_HOME=$PWD/.gems
export GEM_PATH=$GEM_HOME
export PATH=$PWD/bin:$GEM_HOME/bin:$PATH
'';
2022-05-22 22:09:24 -04:00
};
}
);
}