mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
d2367c3f7e
This splits the 3rdparty drivers into seperate packages as recommended by upstream. This also allows to build a indi-full equivalent with only the needed drivers. Also add indi-full-nonfree with all the nonfree drivers. And remove them from indi-full.
25 lines
497 B
Nix
25 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;
|
|
}
|