try native build inputs so we have it at runtime

This commit is contained in:
41666 2025-05-14 17:12:27 -07:00
parent cde9442e64
commit 2c0ab1d636

View file

@ -1,13 +1,16 @@
{ pkgs }: name: src: let { pkgs }: name: src: let
drv = { buildInputs ? [], }: pkgs.stdenvNoCC.mkDerivation { drv = { runtimeInputs ? [], }:
inherit name src buildInputs; pkgs.stdenvNoCC.mkDerivation {
inherit name src;
version = "0.0.0"; version = "0.0.0";
dontUnpack = true; dontUnpack = true;
installPhase = " nativeBuildInputs = runtimeInputs;
mkdir -p $out/bin
cp -r $src $out/bin/${name} installPhase = "
"; mkdir -p $out/bin
}; cp -r $src $out/bin/${name}
in pkgs.lib.customisation.makeOverridable drv { buildInputs = []; } ";
};
in pkgs.lib.customisation.makeOverridable drv { runtimeInputs = []; }