mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
components.nix: Simplify
This commit is contained in:
parent
25dc12aab1
commit
c24dbf1457
2 changed files with 2 additions and 5 deletions
|
@ -176,10 +176,7 @@
|
||||||
# without "polluting" the top level "`pkgs`" attrset.
|
# without "polluting" the top level "`pkgs`" attrset.
|
||||||
# This also has the benefit of providing us with a distinct set of packages
|
# This also has the benefit of providing us with a distinct set of packages
|
||||||
# we can iterate over.
|
# we can iterate over.
|
||||||
nixComponents = lib.makeScope final.nixDependencies.newScope (import ./packaging/components.nix {
|
nixComponents = lib.makeScope final.nixDependencies.newScope (import ./packaging/components.nix);
|
||||||
pkgs = final;
|
|
||||||
inherit stdenv versionSuffix;
|
|
||||||
});
|
|
||||||
|
|
||||||
# The dependencies are in their own scope, so that they don't have to be
|
# The dependencies are in their own scope, so that they don't have to be
|
||||||
# in Nixpkgs top level `pkgs` or `nixComponents`.
|
# in Nixpkgs top level `pkgs` or `nixComponents`.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{pkgs, stdenv, versionSuffix}: scope:
|
scope:
|
||||||
let
|
let
|
||||||
inherit (scope) callPackage;
|
inherit (scope) callPackage;
|
||||||
in
|
in
|
||||||
|
|
Loading…
Reference in a new issue