mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-10 07:25:30 +00:00
Added derivation for the environment of ruboocop and solargraph (PAIN)
This commit is contained in:
parent
43d0434ace
commit
c129696679
8 changed files with 766 additions and 158 deletions
38
modules/languages/ruby/format_derivation.nix
Normal file
38
modules/languages/ruby/format_derivation.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
pkgs,
|
||||
stdenv,
|
||||
}: let
|
||||
formatter-env = with pkgs;
|
||||
bundlerEnv {
|
||||
name = "Gem dependencies";
|
||||
inherit self;
|
||||
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
|
||||
];
|
||||
|
||||
# Add the derivation to the PATH
|
||||
buildInputs = [
|
||||
pkgs.libxslt
|
||||
pkgs.zlib
|
||||
pkgs.libxml2
|
||||
pkgs.pkg-config
|
||||
formatter-env
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue