try native build inputs so we have it at runtime
This commit is contained in:
parent
cde9442e64
commit
2c0ab1d636
1 changed files with 14 additions and 11 deletions
|
@ -1,13 +1,16 @@
|
|||
{ pkgs }: name: src: let
|
||||
drv = { buildInputs ? [], }: pkgs.stdenvNoCC.mkDerivation {
|
||||
inherit name src buildInputs;
|
||||
|
||||
version = "0.0.0";
|
||||
dontUnpack = true;
|
||||
drv = { runtimeInputs ? [], }:
|
||||
pkgs.stdenvNoCC.mkDerivation {
|
||||
inherit name src;
|
||||
|
||||
version = "0.0.0";
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = "
|
||||
mkdir -p $out/bin
|
||||
cp -r $src $out/bin/${name}
|
||||
";
|
||||
};
|
||||
in pkgs.lib.customisation.makeOverridable drv { buildInputs = []; }
|
||||
nativeBuildInputs = runtimeInputs;
|
||||
|
||||
installPhase = "
|
||||
mkdir -p $out/bin
|
||||
cp -r $src $out/bin/${name}
|
||||
";
|
||||
};
|
||||
in pkgs.lib.customisation.makeOverridable drv { runtimeInputs = []; }
|
Loading…
Add table
Add a link
Reference in a new issue