mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-10 15:35:30 +00:00
tried about 238472893764 ways to import rubocop and solargraph
Have a look if you want, I give up
This commit is contained in:
parent
c129696679
commit
5364dc4ba2
6 changed files with 122 additions and 263 deletions
41
modules/languages/ruby/format-derivation.nix
Normal file
41
modules/languages/ruby/format-derivation.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
pkgs,
|
||||
stdenv,
|
||||
}: let
|
||||
#formatter-env = with pkgs;
|
||||
# bundlerEnv {
|
||||
# name = "Gem dependencies";
|
||||
# # inherit ruby_3_2;
|
||||
# ruby = ruby_3_2;
|
||||
# gemdir = ./.;
|
||||
# gemConfig =
|
||||
# pkgs.defaultGemConfig
|
||||
# // {
|
||||
# nokogiri = attrs: {
|
||||
# buildFlags = ["--use-system-libraries"]; # "--with-zlib-include=${pkgs.zlib}/include/libxml2"];
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "Format environment";
|
||||
|
||||
# nativeBuildInputs = [
|
||||
# pkgs.libxslt
|
||||
# pkgs.zlib
|
||||
# pkgs.libxml2
|
||||
# pkgs.pkg-config
|
||||
# pkgs.rubocop
|
||||
# pkgs.solargraph
|
||||
# ];
|
||||
|
||||
# Add the derivation to the PATH
|
||||
buildInputs = [
|
||||
pkgs.libxslt
|
||||
pkgs.libxml2
|
||||
pkgs.rubocop
|
||||
pkgs.solargraph
|
||||
|
||||
# formatter-env
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue