mirror of
https://github.com/foo-dogsquared/asciidoctor-foodogsquared-extensions.git
synced 2025-01-30 16:57:57 +00:00
Update flake and devshell
This commit is contained in:
parent
83aad53d74
commit
66233f04e6
11
flake.nix
11
flake.nix
@ -17,11 +17,20 @@
|
||||
in inputs.flake-utils.lib.eachSystem systems (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
gems = ruby-nix.lib pkgs {
|
||||
name = "asciidoctor-foodogsquared-extensions";
|
||||
ruby = pkgs.ruby_3_1;
|
||||
gemset = ./gemset.nix;
|
||||
};
|
||||
in
|
||||
{
|
||||
devShells.default =
|
||||
import ./shell.nix {
|
||||
inherit pkgs ruby-nix;
|
||||
inherit pkgs;
|
||||
extraBuildInputs = [
|
||||
gems.env
|
||||
gems.ruby
|
||||
];
|
||||
extraPackages = [
|
||||
inputs.ruby-nix-bundix.packages."${system}".default
|
||||
];
|
||||
|
13
shell.nix
13
shell.nix
@ -1,25 +1,18 @@
|
||||
{ pkgs ? import <nixpkgs> { }
|
||||
, ruby-nix
|
||||
, extraPackages ? [ ]
|
||||
, extraBuildInputs ? [ ]
|
||||
}:
|
||||
|
||||
with pkgs;
|
||||
|
||||
let
|
||||
gems = ruby-nix.lib pkgs {
|
||||
name = "asciidoctor-foodogsquared-extensions";
|
||||
ruby = ruby_3_1;
|
||||
gemset = ./gemset.nix;
|
||||
};
|
||||
in
|
||||
mkShell {
|
||||
buildInputs = [
|
||||
gems.env
|
||||
gems.ruby
|
||||
# Dependencies for Nokogiri.
|
||||
pkg-config
|
||||
zlib
|
||||
libiconv
|
||||
|
||||
# Dependencies for rugged.
|
||||
libgit2
|
||||
] ++ extraBuildInputs;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user