Files
net/flake.nix

40 lines
827 B
Nix
Raw Normal View History

2022-05-22 22:09:24 -04:00
{
description = "walkah.net";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.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;
};
};
outputs =
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
name = "net";
buildInputs = with pkgs; [
libyaml
nodejs
ruby
];
shellHook = ''
mkdir -p .gems
2022-05-26 21:42:09 -04:00
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
}