feat(sterni/blërg): generic, configurable backends
Change-Id: Iebec5caea9b780eb8ca2ec1f18bb4fa978f4bb95 Reviewed-on: https://cl.tvl.fyi/c/depot/+/13107 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI Autosubmit: sterni <sternenseemann@systemli.org>
This commit is contained in:
parent
1a0d20b417
commit
5e3e62c87d
3 changed files with 46 additions and 11 deletions
|
|
@ -5,13 +5,16 @@ let
|
|||
runtimeDependencies = [
|
||||
depot.users.sterni.mn2html
|
||||
pkgs.mblaze
|
||||
pkgs.execline # execline-cd
|
||||
pkgs.execline # execline-cd, importas
|
||||
# coreutils # for printf (assumed to be installed)
|
||||
];
|
||||
|
||||
# … and this
|
||||
buildInputs = [
|
||||
pkgs.cbqn
|
||||
];
|
||||
|
||||
BQN_LIBS = depot.third_party.bqn-libs + "/lib";
|
||||
in
|
||||
|
||||
pkgs.runCommandNoCC "blerg"
|
||||
|
|
@ -25,10 +28,13 @@ pkgs.runCommandNoCC "blerg"
|
|||
passthru.shell = pkgs.mkShell {
|
||||
name = "blërg-shell";
|
||||
packages = runtimeDependencies ++ buildInputs;
|
||||
inherit BQN_LIBS;
|
||||
};
|
||||
}
|
||||
''
|
||||
install -Dm755 "$src" "$out/bin/blërg"
|
||||
patchShebangs "$out/bin/blërg"
|
||||
wrapProgram "$out/bin/blërg" --prefix PATH : "${lib.makeBinPath runtimeDependencies}"
|
||||
wrapProgram "$out/bin/blërg" \
|
||||
--prefix PATH : "${lib.makeBinPath runtimeDependencies}" \
|
||||
--set BQN_LIBS "${BQN_LIBS}"
|
||||
''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue