159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
24 lines
497 B
Nix
24 lines
497 B
Nix
{
|
|
lib,
|
|
buildEnv,
|
|
makeBinaryWrapper,
|
|
indilib ? indilib,
|
|
pname ? "indi-with-drivers",
|
|
version ? indilib.version,
|
|
extraDrivers ? [ ],
|
|
}:
|
|
|
|
buildEnv {
|
|
name = "${pname}-${version}";
|
|
|
|
paths = [ indilib ] ++ extraDrivers;
|
|
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
|
|
|
postBuild = lib.optionalString (extraDrivers != [ ]) ''
|
|
rm $out/bin/indiserver
|
|
makeBinaryWrapper ${indilib}/bin/indiserver $out/bin/indiserver --set-default INDIPREFIX $out
|
|
'';
|
|
|
|
inherit (indilib) meta;
|
|
}
|