Merge pull request #258825 from returntoreality/indi-full-wrap

indi-full: wrap indiserver to set correct prefix
This commit is contained in:
Weijia Wang 2023-10-19 01:31:02 +02:00 committed by GitHub
commit fd34a71cc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ buildEnv, indilib ? indilib, pname ? "indi-with-drivers", version ? null, extraDrivers ? null }:
{ buildEnv, makeBinaryWrapper, indilib ? indilib, pname ? "indi-with-drivers", version ? null, extraDrivers ? null }:
buildEnv {
name = "${pname}-${version}";
@ -6,5 +6,13 @@ buildEnv {
indilib
]
++ extraDrivers;
nativeBuildInputs = [ makeBinaryWrapper ];
postBuild = ''
makeBinaryWrapper ${indilib}/bin/indiserver $out/bin/indiserver --set-default INDIPREFIX $out
'';
inherit (indilib) meta;
}