Change-Id: Iceacf406bef71529cb29e8adcf9fe1f713187e42 Reviewed-on: https://cl.tvl.fyi/c/depot/+/13103 Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
34 lines
737 B
Nix
34 lines
737 B
Nix
{ depot, pkgs, lib, ... }:
|
|
|
|
let
|
|
# update README.md when changing this
|
|
runtimeDependencies = [
|
|
depot.users.sterni.mn2html
|
|
pkgs.mblaze
|
|
pkgs.execline # execline-cd
|
|
];
|
|
|
|
# … and this
|
|
buildInputs = [
|
|
pkgs.cbqn
|
|
];
|
|
in
|
|
|
|
pkgs.runCommandNoCC "blerg"
|
|
{
|
|
src = builtins.path {
|
|
name = "blerg.bqn";
|
|
path = ./. + "/blërg.bqn";
|
|
};
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
|
inherit buildInputs;
|
|
passthru.shell = pkgs.mkShell {
|
|
name = "blërg-shell";
|
|
packages = runtimeDependencies ++ buildInputs;
|
|
};
|
|
}
|
|
''
|
|
install -Dm755 "$src" "$out/bin/blërg"
|
|
patchShebangs "$out/bin/blërg"
|
|
wrapProgram "$out/bin/blërg" --prefix PATH : "${lib.makeBinPath runtimeDependencies}"
|
|
''
|