scripts: use makeScope
This commit is contained in:
parent
a5103666f1
commit
d081798ded
1 changed files with 8 additions and 7 deletions
|
@ -1,13 +1,14 @@
|
||||||
# NOTE: 301: All packages are migrated to `github:Guanran928/nur-packages`,
|
# NOTE: 301: All packages are migrated to `github:Guanran928/nur-packages`,
|
||||||
# only keeping some packages that only fits for personal use.
|
# only keeping some packages that only fits for personal use.
|
||||||
pkgs: {
|
pkgs: let
|
||||||
scripts = rec {
|
inherit (pkgs) lib;
|
||||||
|
in {
|
||||||
|
scripts = lib.makeScope pkgs.newScope (self: {
|
||||||
# util
|
# util
|
||||||
makeScript = pkgs.callPackage ./scripts/makeScript.nix {};
|
makeScript = self.callPackage ./scripts/makeScript.nix {};
|
||||||
|
|
||||||
# scripts
|
# scripts
|
||||||
# TODO: Do I really have to inherit `makeScript` for every script?
|
lofi = self.callPackage ./scripts/lofi.nix {};
|
||||||
lofi = pkgs.callPackage ./scripts/lofi.nix {inherit makeScript;};
|
screenshot = self.callPackage ./scripts/screenshot.nix {};
|
||||||
screenshot = pkgs.callPackage ./scripts/screenshot.nix {inherit makeScript;};
|
});
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue