mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
Merge pull request #258825 from returntoreality/indi-full-wrap
indi-full: wrap indiserver to set correct prefix
This commit is contained in:
commit
fd34a71cc7
@ -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 {
|
buildEnv {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
@ -6,5 +6,13 @@ buildEnv {
|
|||||||
indilib
|
indilib
|
||||||
]
|
]
|
||||||
++ extraDrivers;
|
++ extraDrivers;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
||||||
|
|
||||||
|
postBuild = ''
|
||||||
|
makeBinaryWrapper ${indilib}/bin/indiserver $out/bin/indiserver --set-default INDIPREFIX $out
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
inherit (indilib) meta;
|
inherit (indilib) meta;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user