nix-config/packages/create-script.nix
Oliver Davies 5341b761ad
All checks were successful
/ check (push) Successful in 1m40s
Combine scripts and custom packages
2025-07-10 22:51:55 +01:00

21 lines
240 B
Nix
Executable file

{ pkgs }:
pkgs.writeShellApplication {
name = "create-script";
text = ''
cat > "$1" << EOF
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
EOF
chmod +x "$1"
$EDITOR "$1";
'';
}