bunch of misc stuff i don't feel like commit messaging

This commit is contained in:
Gerg-L 2024-06-22 12:50:51 -04:00
parent 46752bcb1d
commit 5823cab2c4
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
26 changed files with 173 additions and 168 deletions

View file

@ -9,7 +9,6 @@ let
in
# Only good use case for rec
rec {
wrench = lib.flip lib.pipe;
needsSystem = lib.flip builtins.elem [
@ -63,6 +62,8 @@ rec {
x
else
let
# all arguments defined in the module
funcArgs = lib.functionArgs imported;
/*
The names of all arguments which will be
available to be inserted into the module arguments
@ -85,17 +86,9 @@ rec {
_dir is the "self" derived
path to the directory containing the module
*/
_dir =
let
dir = builtins.dirOf x;
in
# Probably don't need this error check
if (dir == builtins.storeDir) then null else dir;
_dir = builtins.dirOf x;
};
# all arguments defined in the module
funcArgs = lib.functionArgs imported;
/*
arguments which will be inserted
set to the before per-system values
@ -155,7 +148,6 @@ rec {
// {
_file = x;
};
};
gerg-utils =
@ -238,7 +230,6 @@ rec {
}
);
in
if builtins.pathExists "${path}/${n}/call.nix" then
let
x = import "${path}/${n}/call.nix" pkgs;
@ -246,7 +237,6 @@ rec {
x.callPackage "${path}/${n}/package.nix" x.args
else
callPackage "${path}/${n}/package.nix" { }
))
];
}