11 lines
167 B
Bash
11 lines
167 B
Bash
|
#!/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"
|