mirror of
https://github.com/WiiPlayer2/switchroot-nixos.git
synced 2025-10-06 00:32:47 +02:00
Add interdependable packages
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/result
|
2
pkgs/by-name/hello-universe.nix
Normal file
2
pkgs/by-name/hello-universe.nix
Normal file
@@ -0,0 +1,2 @@
|
||||
{ hello-world }:
|
||||
hello-world
|
2
pkgs/by-name/hello-world.nix
Normal file
2
pkgs/by-name/hello-world.nix
Normal file
@@ -0,0 +1,2 @@
|
||||
{ hello }:
|
||||
hello
|
@@ -6,12 +6,18 @@ let
|
||||
inherit (nixpkgs.lib)
|
||||
map
|
||||
listToAttrs
|
||||
packagesFromDirectoryRecursive
|
||||
callPackageWith
|
||||
;
|
||||
pkgsForSystem = system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
localPkgs = packagesFromDirectoryRecursive {
|
||||
callPackage = callPackageWith (pkgs // localPkgs);
|
||||
directory = ./by-name;
|
||||
};
|
||||
in
|
||||
null;
|
||||
localPkgs;
|
||||
pkgsSets =
|
||||
listToAttrs
|
||||
(
|
||||
|
Reference in New Issue
Block a user