10 lines
167 B
Bash
Executable file
10 lines
167 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# nix-pass.sh
|
|
|
|
set -euo pipefail
|
|
|
|
f=$(mktemp)
|
|
trap "rm $f" EXIT
|
|
pass show "$1" | head -c -1 > $f
|
|
nix-instantiate --eval -E "builtins.readFile $f"
|