depot/third_party/nixpkgs/pkgs/by-name/in/indi-with-drivers/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

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;
}