add buildInputs option to mkExecutable

This commit is contained in:
Benjamin Bädorf 2023-02-08 16:20:40 +01:00
parent 15b4c19f42
commit 0b54d6ce44
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C

View file

@ -9,6 +9,7 @@
version, version,
src, src,
bin ? pname, bin ? pname,
buildInputs ? [],
entrypoint, entrypoint,
lockfile, lockfile,
config, config,
@ -58,7 +59,7 @@ in
inherit pname version src; inherit pname version src;
dontFixup = true; dontFixup = true;
buildInputs = with pkgs; [deno jq]; buildInputs = with pkgs; [deno jq] ++ buildInputs;
buildPhase = '' buildPhase = ''
export DENO_DIR="/tmp/deno2nix" export DENO_DIR="/tmp/deno2nix"
mkdir -p $DENO_DIR mkdir -p $DENO_DIR