refactor: remove duplication
This commit is contained in:
109 files changed
+2206
-3078
No files matched your search
@@ -0,0 +1,16 @@
|
||||
# The console helpers are net-lib.sh plus one front end, wrapped with the tools they call.
|
||||
{ lib, writeShellApplication }:
|
||||
|
||||
{
|
||||
name,
|
||||
script,
|
||||
runtimeInputs,
|
||||
runtimeEnv ? { },
|
||||
}:
|
||||
writeShellApplication {
|
||||
inherit name runtimeInputs runtimeEnv;
|
||||
text = lib.concatStringsSep "\n" [
|
||||
(builtins.readFile ./net-lib.sh)
|
||||
(builtins.readFile script)
|
||||
];
|
||||
}
|
||||
Reference in new issue
Block a user