Gen 423: Converted shell scripts into nix files

This commit is contained in:
pagedMov
2024-10-12 17:17:10 -04:00
parent a3614a0dc7
commit 07b2f5cab9
63 changed files with 252 additions and 500 deletions

View File

@@ -0,0 +1,16 @@
{ pkgs }:
{
compress = pkgs.writeShellScriptBin "compress" (''
#!/usr/bin/env bash
if (( $# == 1 )) then
# echo -ne "Archive name: "
# read name
# tar -cvzf "$name.tar.gz" $1
tar -cvzf "$1.tar.gz" $1
else
echo "Wrong number of arguments..."
fi
'');
}