pkgs/http.server: Add shortcut command for python3 http.server
This commit is contained in:
14
pkgs/http.server/default.nix
Normal file
14
pkgs/http.server/default.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
python3,
|
||||
writeShellApplication,
|
||||
}:
|
||||
|
||||
writeShellApplication {
|
||||
name = "http.server";
|
||||
text = ''
|
||||
python3 -m http.server "$@"
|
||||
'';
|
||||
runtimeInputs = [
|
||||
python3
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user