mirror of
https://github.com/foo-dogsquared/asciidoctor-foodogsquared-extensions.git
synced 2025-01-30 22:57:56 +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:
|
in inputs.flake-utils.lib.eachSystem systems (system:
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
gems = ruby-nix.lib pkgs {
|
||||||
|
name = "asciidoctor-foodogsquared-extensions";
|
||||||
|
ruby = pkgs.ruby_3_1;
|
||||||
|
gemset = ./gemset.nix;
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
devShells.default =
|
devShells.default =
|
||||||
import ./shell.nix {
|
import ./shell.nix {
|
||||||
inherit pkgs ruby-nix;
|
inherit pkgs;
|
||||||
|
extraBuildInputs = [
|
||||||
|
gems.env
|
||||||
|
gems.ruby
|
||||||
|
];
|
||||||
extraPackages = [
|
extraPackages = [
|
||||||
inputs.ruby-nix-bundix.packages."${system}".default
|
inputs.ruby-nix-bundix.packages."${system}".default
|
||||||
];
|
];
|
||||||
|
13
shell.nix
13
shell.nix
@ -1,25 +1,18 @@
|
|||||||
{ pkgs ? import <nixpkgs> { }
|
{ pkgs ? import <nixpkgs> { }
|
||||||
, ruby-nix
|
|
||||||
, extraPackages ? [ ]
|
, extraPackages ? [ ]
|
||||||
, extraBuildInputs ? [ ]
|
, extraBuildInputs ? [ ]
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
|
||||||
let
|
|
||||||
gems = ruby-nix.lib pkgs {
|
|
||||||
name = "asciidoctor-foodogsquared-extensions";
|
|
||||||
ruby = ruby_3_1;
|
|
||||||
gemset = ./gemset.nix;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
mkShell {
|
mkShell {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gems.env
|
# Dependencies for Nokogiri.
|
||||||
gems.ruby
|
|
||||||
pkg-config
|
pkg-config
|
||||||
zlib
|
zlib
|
||||||
libiconv
|
libiconv
|
||||||
|
|
||||||
|
# Dependencies for rugged.
|
||||||
libgit2
|
libgit2
|
||||||
] ++ extraBuildInputs;
|
] ++ extraBuildInputs;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user