Created
May 11, 2023 12:16
-
-
Save ryansch/90e88b3c9fa160dd74b2a97d94e94d03 to your computer and use it in GitHub Desktop.
minimal ruby+bundle repro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source_url "https://raw.githubusercontent.com/cachix/devenv/d1f7b48e35e6dee421cfd0f51481d17f77586997/direnvrc" "sha256-YBzqskFZxmNb3kYVoKD9ZixoPXJh1C9ZvTLGFRkauZ0=" | |
use devenv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nodes": { | |
"devenv": { | |
"inputs": { | |
"flake-compat": "flake-compat", | |
"nix": "nix", | |
"nixpkgs": "nixpkgs", | |
"pre-commit-hooks": "pre-commit-hooks" | |
}, | |
"locked": { | |
"lastModified": 1683311042, | |
"narHash": "sha256-ODlG7fLccoAK/3sX5taNMLWxvYzR9yeARHevLc9kQR4=", | |
"owner": "bobvanderlinden", | |
"repo": "devenv", | |
"rev": "828aa8c772289dde671dcc9677ae9c314167c778", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "bobvanderlinden", | |
"ref": "pr-ruby-bundler-options", | |
"repo": "devenv", | |
"type": "github" | |
} | |
}, | |
"flake-compat": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1673956053, | |
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", | |
"owner": "edolstra", | |
"repo": "flake-compat", | |
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "edolstra", | |
"repo": "flake-compat", | |
"type": "github" | |
} | |
}, | |
"flake-compat_2": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1673956053, | |
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", | |
"owner": "edolstra", | |
"repo": "flake-compat", | |
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "edolstra", | |
"repo": "flake-compat", | |
"type": "github" | |
} | |
}, | |
"flake-compat_3": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1673956053, | |
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", | |
"owner": "edolstra", | |
"repo": "flake-compat", | |
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "edolstra", | |
"repo": "flake-compat", | |
"type": "github" | |
} | |
}, | |
"flake-utils": { | |
"locked": { | |
"lastModified": 1667395993, | |
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"type": "github" | |
} | |
}, | |
"flake-utils_2": { | |
"locked": { | |
"lastModified": 1667395993, | |
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"type": "github" | |
} | |
}, | |
"flake-utils_3": { | |
"locked": { | |
"lastModified": 1667395993, | |
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"type": "github" | |
} | |
}, | |
"gitignore": { | |
"inputs": { | |
"nixpkgs": [ | |
"devenv", | |
"pre-commit-hooks", | |
"nixpkgs" | |
] | |
}, | |
"locked": { | |
"lastModified": 1660459072, | |
"narHash": "sha256-8DFJjXG8zqoONA1vXtgeKXy68KdJL5UaXR8NtVMUbx8=", | |
"owner": "hercules-ci", | |
"repo": "gitignore.nix", | |
"rev": "a20de23b925fd8264fd7fad6454652e142fd7f73", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "hercules-ci", | |
"repo": "gitignore.nix", | |
"type": "github" | |
} | |
}, | |
"gitignore_2": { | |
"inputs": { | |
"nixpkgs": [ | |
"pre-commit-hooks", | |
"nixpkgs" | |
] | |
}, | |
"locked": { | |
"lastModified": 1660459072, | |
"narHash": "sha256-8DFJjXG8zqoONA1vXtgeKXy68KdJL5UaXR8NtVMUbx8=", | |
"owner": "hercules-ci", | |
"repo": "gitignore.nix", | |
"rev": "a20de23b925fd8264fd7fad6454652e142fd7f73", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "hercules-ci", | |
"repo": "gitignore.nix", | |
"type": "github" | |
} | |
}, | |
"lowdown-src": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1633514407, | |
"narHash": "sha256-Dw32tiMjdK9t3ETl5fzGrutQTzh2rufgZV4A/BbxuD4=", | |
"owner": "kristapsdz", | |
"repo": "lowdown", | |
"rev": "d2c2b44ff6c27b936ec27358a2653caaef8f73b8", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "kristapsdz", | |
"repo": "lowdown", | |
"type": "github" | |
} | |
}, | |
"nix": { | |
"inputs": { | |
"lowdown-src": "lowdown-src", | |
"nixpkgs": [ | |
"devenv", | |
"nixpkgs" | |
], | |
"nixpkgs-regression": "nixpkgs-regression" | |
}, | |
"locked": { | |
"lastModified": 1676545802, | |
"narHash": "sha256-EK4rZ+Hd5hsvXnzSzk2ikhStJnD63odF7SzsQ8CuSPU=", | |
"owner": "domenkozar", | |
"repo": "nix", | |
"rev": "7c91803598ffbcfe4a55c44ac6d49b2cf07a527f", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "domenkozar", | |
"ref": "relaxed-flakes", | |
"repo": "nix", | |
"type": "github" | |
} | |
}, | |
"nixpkgs": { | |
"locked": { | |
"lastModified": 1683267615, | |
"narHash": "sha256-A/zAy9YauwdPut90h6cYC1zgP/WmuW9zmJ+K/c5i6uc=", | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "0b6445b611472740f02eae9015150c07c5373340", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "NixOS", | |
"ref": "nixpkgs-unstable", | |
"repo": "nixpkgs", | |
"type": "github" | |
} | |
}, | |
"nixpkgs-regression": { | |
"locked": { | |
"lastModified": 1643052045, | |
"narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=", | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2", | |
"type": "github" | |
} | |
}, | |
"nixpkgs-ruby": { | |
"inputs": { | |
"flake-compat": "flake-compat_2", | |
"flake-utils": "flake-utils_2", | |
"nixpkgs": "nixpkgs_3" | |
}, | |
"locked": { | |
"lastModified": 1682196820, | |
"narHash": "sha256-ZfXXQiwsgS+6MJ3OJVPcAPkGDI6Biid1h97C9S1ibBc=", | |
"owner": "bobvanderlinden", | |
"repo": "nixpkgs-ruby", | |
"rev": "983b270c895c937ab27d857ba1e2a12e6dcecffe", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "bobvanderlinden", | |
"repo": "nixpkgs-ruby", | |
"type": "github" | |
} | |
}, | |
"nixpkgs-stable": { | |
"locked": { | |
"lastModified": 1678872516, | |
"narHash": "sha256-/E1YwtMtFAu2KUQKV/1+KFuReYPANM2Rzehk84VxVoc=", | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "9b8e5abb18324c7fe9f07cb100c3cd4a29cda8b8", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "NixOS", | |
"ref": "nixos-22.11", | |
"repo": "nixpkgs", | |
"type": "github" | |
} | |
}, | |
"nixpkgs-stable_2": { | |
"locked": { | |
"lastModified": 1678872516, | |
"narHash": "sha256-/E1YwtMtFAu2KUQKV/1+KFuReYPANM2Rzehk84VxVoc=", | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "9b8e5abb18324c7fe9f07cb100c3cd4a29cda8b8", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "NixOS", | |
"ref": "nixos-22.11", | |
"repo": "nixpkgs", | |
"type": "github" | |
} | |
}, | |
"nixpkgs_2": { | |
"locked": { | |
"lastModified": 1683267615, | |
"narHash": "sha256-A/zAy9YauwdPut90h6cYC1zgP/WmuW9zmJ+K/c5i6uc=", | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "0b6445b611472740f02eae9015150c07c5373340", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "NixOS", | |
"ref": "nixpkgs-unstable", | |
"repo": "nixpkgs", | |
"type": "github" | |
} | |
}, | |
"nixpkgs_3": { | |
"locked": { | |
"lastModified": 1673345971, | |
"narHash": "sha256-4DfFcKLRfVUTyuGrGNNmw37IeIZSoku9tgTVmu/iD98=", | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "54644f409ab471e87014bb305eac8c50190bcf48", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "NixOS", | |
"ref": "nixos-22.11", | |
"repo": "nixpkgs", | |
"type": "github" | |
} | |
}, | |
"pre-commit-hooks": { | |
"inputs": { | |
"flake-compat": [ | |
"devenv", | |
"flake-compat" | |
], | |
"flake-utils": "flake-utils", | |
"gitignore": "gitignore", | |
"nixpkgs": [ | |
"devenv", | |
"nixpkgs" | |
], | |
"nixpkgs-stable": "nixpkgs-stable" | |
}, | |
"locked": { | |
"lastModified": 1682596858, | |
"narHash": "sha256-Hf9XVpqaGqe/4oDGr30W8HlsWvJXtMsEPHDqHZA6dDg=", | |
"owner": "cachix", | |
"repo": "pre-commit-hooks.nix", | |
"rev": "fb58866e20af98779017134319b5663b8215d912", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "cachix", | |
"repo": "pre-commit-hooks.nix", | |
"type": "github" | |
} | |
}, | |
"pre-commit-hooks_2": { | |
"inputs": { | |
"flake-compat": "flake-compat_3", | |
"flake-utils": "flake-utils_3", | |
"gitignore": "gitignore_2", | |
"nixpkgs": [ | |
"nixpkgs" | |
], | |
"nixpkgs-stable": "nixpkgs-stable_2" | |
}, | |
"locked": { | |
"lastModified": 1682596858, | |
"narHash": "sha256-Hf9XVpqaGqe/4oDGr30W8HlsWvJXtMsEPHDqHZA6dDg=", | |
"owner": "cachix", | |
"repo": "pre-commit-hooks.nix", | |
"rev": "fb58866e20af98779017134319b5663b8215d912", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "cachix", | |
"repo": "pre-commit-hooks.nix", | |
"type": "github" | |
} | |
}, | |
"root": { | |
"inputs": { | |
"devenv": "devenv", | |
"nixpkgs": "nixpkgs_2", | |
"nixpkgs-ruby": "nixpkgs-ruby", | |
"pre-commit-hooks": "pre-commit-hooks_2" | |
} | |
} | |
}, | |
"root": "root", | |
"version": 7 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, ... }: | |
{ | |
# https://devenv.sh/packages/ | |
packages = with pkgs; [ | |
git | |
nodejs-18_x | |
yarn | |
mysql80 | |
postgresql_14 | |
zlib | |
tmux | |
tmuxPlugins.sensible | |
tmuxPlugins.yank | |
]; | |
# https://devenv.sh/languages/ | |
languages.ruby.enable = true; | |
# Uses bobvanderlinden/nixpkgs-ruby to supply any version of ruby | |
languages.ruby.versionFile = ./.ruby-version; | |
enterShell = '' | |
export BUNDLE_BIN="$DEVENV_ROOT/.devenv/bin" | |
export PATH="$DEVENV_PROFILE/bin:$DEVENV_ROOT/bin:$BUNDLE_BIN:$PATH" | |
export BOOTSNAP_CACHE_DIR="$DEVENV_ROOT/.devenv/state" | |
''; | |
# See full reference at https://devenv.sh/reference/options/ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inputs: | |
nixpkgs: | |
url: github:NixOS/nixpkgs/nixpkgs-unstable | |
nixpkgs-ruby: | |
url: github:bobvanderlinden/nixpkgs-ruby | |
devenv: | |
url: github:bobvanderlinden/devenv/pr-ruby-bundler-options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
ruby "3.1.2" | |
# Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity. It encourages beautiful code by favoring convention over configuration. | |
gem "rails", "6.1.7.3" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment