Skip to content

Commit df3f591

Browse files
authored
Integrate direnv with flakes (#503)
* Integrate direnv with flakes This change makes local development easier for NixOS-based systems by introducing a flake which declares the Ruby dependencies of this project. This is useful in cases in which we don't want (or need) to declare Ruby and it's dependencies globally. * Do not track `.envrc
1 parent d2e00d3 commit df3f591

File tree

3 files changed

+89
-0
lines changed

3 files changed

+89
-0
lines changed

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,15 @@ target/
1515

1616
# rspec failure tracking
1717
.rspec_status
18+
19+
# Emacs
20+
*~
21+
\#*\#
22+
.\#*
23+
24+
# Direnv
25+
.direnv/
26+
.envrc
27+
28+
# JIT dump
29+
*.dump

flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
3+
inputs.flake-utils.url = "github:numtide/flake-utils";
4+
5+
outputs = { nixpkgs, flake-utils, ... }:
6+
flake-utils.lib.eachDefaultSystem (system: {
7+
devShells.default = nixpkgs.legacyPackages.${system}.mkShell {
8+
packages = with nixpkgs.legacyPackages.${system}; [
9+
ruby # Stable
10+
bundler
11+
libffi
12+
llvmPackages_latest.libcxx
13+
];
14+
};
15+
});
16+
}

0 commit comments

Comments
 (0)