Skip to content

Commit

Permalink
indi-full: refactor 3rdparty drivers
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
returntoreality committed Apr 27, 2024
1 parent 0474fb9 commit df3225f
Show file tree
Hide file tree
Showing 7 changed files with 761 additions and 171 deletions.
13 changes: 13 additions & 0 deletions pkgs/by-name/in/indi-full-nonfree/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{ lib
, stdenv
, callPackage
, indi-3rdparty
, indilib
, indi-with-drivers
}:

indi-with-drivers.override {
pname = "indi-full-nonfree";
inherit (indilib) version;
extraDrivers = builtins.filter (attrs: lib.meta.availableOn stdenv.hostPlatform attrs) (builtins.attrValues indi-3rdparty);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

buildEnv {
name = "${pname}-${version}";

paths = [
indilib
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ stdenv.mkDerivation (finalAttrs: {
description = "Implementation of the INDI protocol for POSIX operating systems";
changelog = "https://github.com/indilib/indi/releases/tag/v${finalAttrs.version}";
license = licenses.lgpl2Plus;
maintainers = with maintainers; [ hjones2199 sheepforce ];
maintainers = with maintainers; [ hjones2199 sheepforce returntoreality ];
platforms = platforms.unix;
};
})
Loading

0 comments on commit df3225f

Please sign in to comment.