mirror of
https://github.com/mjallen18/snowfall-lib.git
synced 2026-04-18 17:15:57 -05:00
feat: add inputs to callPackage
This commit is contained in:
@@ -32,6 +32,13 @@ in
|
||||
# result: false
|
||||
is-linux = hasInfix "linux";
|
||||
|
||||
# Check whether a named system is virtual.
|
||||
# Type: String -> Bool
|
||||
# Usage: is-virtual "x86_64-iso"
|
||||
# result: true
|
||||
is-virtual = target:
|
||||
(get-virtual-system-type target) != "";
|
||||
|
||||
# Get the virtual system type of a system target.
|
||||
# Type: String -> String
|
||||
# Usage: get-virtual-system-type "x86_64-iso"
|
||||
@@ -161,8 +168,9 @@ in
|
||||
modules = [ path ] ++ modules;
|
||||
|
||||
specialArgs = specialArgs // {
|
||||
inherit system name systems lib;
|
||||
inherit target system name systems lib;
|
||||
|
||||
virtual = (get-virtual-system-type target) != "";
|
||||
inputs = snowfall-lib.flake.without-src user-inputs;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user