Hello.
In one of my projects I need asciidoctor built with an additional dependency to enable html5s rendering backend.
And here’s the change I want (I’ve already submitted a patch upstream)
https://github.com/NixOS/nixpkgs/pull/155265/files
Right now I’m pulling in this change into my devshell by overriding nixpkgs to my fork where the patch is already applied:
{
inputs = {
nixpkgs = {
url = "github:edio/nixpkgs/master"; # <- here's how I pull this change into my devshell
};
flake-utils = {
url = "github:numtide/flake-utils";
};
};
outputs = { nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
in rec {
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
hugo
imagemagick
(pkgs.writeShellScriptBin "asciidoctor" ''${pkgs.asciidoctor-with-extensions}/bin/asciidoctor -r asciidoctor-html5s -b html5s "$@"'')
];
};
}
);
}
Is there a way to bring this change into my devshell without overriding nixpkgs?
Thanks in advance for help!