flake: move 'packages' to 'flake/'
This commit is contained in:
parent
1ae2bca445
commit
40fff4b13a
12
flake.nix
12
flake.nix
|
@ -111,9 +111,6 @@
|
||||||
in
|
in
|
||||||
eachMySystem
|
eachMySystem
|
||||||
(system:
|
(system:
|
||||||
let
|
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
|
||||||
in
|
|
||||||
rec {
|
rec {
|
||||||
apps = {
|
apps = {
|
||||||
diff-flake = futils.lib.mkApp { drv = packages.diff-flake; };
|
diff-flake = futils.lib.mkApp { drv = packages.diff-flake; };
|
||||||
|
@ -124,14 +121,7 @@
|
||||||
|
|
||||||
devShells = import ./flake/dev-shells.nix inputs system;
|
devShells = import ./flake/dev-shells.nix inputs system;
|
||||||
|
|
||||||
packages =
|
packages = import ./flake/packages.nix inputs system;
|
||||||
let
|
|
||||||
inherit (futils.lib) filterPackages flattenTree;
|
|
||||||
packages = import ./pkgs { inherit pkgs; };
|
|
||||||
flattenedPackages = flattenTree packages;
|
|
||||||
finalPackages = filterPackages system flattenedPackages;
|
|
||||||
in
|
|
||||||
finalPackages;
|
|
||||||
|
|
||||||
# Work-around for https://github.com/nix-community/home-manager/issues/3075
|
# Work-around for https://github.com/nix-community/home-manager/issues/3075
|
||||||
legacyPackages = {
|
legacyPackages = {
|
||||||
|
|
10
flake/packages.nix
Normal file
10
flake/packages.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{ self, futils, nixpkgs, ... }:
|
||||||
|
system:
|
||||||
|
let
|
||||||
|
inherit (futils.lib) filterPackages flattenTree;
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
packages = import "${self}/pkgs" { inherit pkgs; };
|
||||||
|
flattenedPackages = flattenTree packages;
|
||||||
|
finalPackages = filterPackages system flattenedPackages;
|
||||||
|
in
|
||||||
|
finalPackages
|
Loading…
Reference in a new issue