flake: make packages more modular
This commit is contained in:
parent
2a0e3098d4
commit
3db530e26b
@ -194,7 +194,8 @@
|
|||||||
# (extraS|s)pecialArgs to pass variables
|
# (extraS|s)pecialArgs to pass variables
|
||||||
nixosModules = (import ./modules/nixos) moduleInputs;
|
nixosModules = (import ./modules/nixos) moduleInputs;
|
||||||
homeManagerModules = (import ./modules/home-manager) moduleInputs;
|
homeManagerModules = (import ./modules/home-manager) moduleInputs;
|
||||||
packages = eachSystem (system: import ./pkgs { inherit nixpkgs system; });
|
packages = eachSystem (system: let pkgs = import nixpkgs { inherit system; };
|
||||||
|
in import ./pkgs { inherit pkgs; });
|
||||||
apps = eachSystem (system: import ./pkgs/apps.nix
|
apps = eachSystem (system: import ./pkgs/apps.nix
|
||||||
{ inherit (self.outputs) packages; inherit system; });
|
{ inherit (self.outputs) packages; inherit system; });
|
||||||
|
|
||||||
|
@ -1,11 +1,14 @@
|
|||||||
{ nixpkgs, system, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
inherit (pkgs) callPackage callPackages;
|
||||||
inherit (pkgs) callPackage;
|
|
||||||
|
mopidyPackages = callPackages ./mopidy {
|
||||||
|
python = pkgs.python3;
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
inherit (mopidyPackages) mopidy-autoplay ;
|
||||||
google-fonts = callPackage ./google-fonts { };
|
google-fonts = callPackage ./google-fonts { };
|
||||||
wm-helpers = callPackage ./wm-helpers { };
|
wm-helpers = callPackage ./wm-helpers { };
|
||||||
atool = callPackage ./atool-wrapped { };
|
atool = callPackage ./atool-wrapped { };
|
||||||
mopidy-autoplay = callPackage ./mopidy-autoplay { };
|
|
||||||
}
|
}
|
||||||
|
10
pkgs/mopidy/default.nix
Normal file
10
pkgs/mopidy/default.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ lib, newScope, python }:
|
||||||
|
|
||||||
|
# i have no idea what this is but there's some conflict if i don't do this
|
||||||
|
# based on https://github.com/NixOS/nixpkgs/blob/77f0d2095a8271fdb6e0d08c90a7d93631fd2748/pkgs/applications/audio/mopidy/default.nix
|
||||||
|
lib.makeScope newScope (self: with self; {
|
||||||
|
inherit python;
|
||||||
|
pythonPackages = python.pkgs;
|
||||||
|
|
||||||
|
mopidy-autoplay = callPackage ./autoplay.nix { };
|
||||||
|
})
|
Loading…
x
Reference in New Issue
Block a user