1
0
Fork 0
mirror of https://git.madhouse-project.org/actions/nix.git synced 2024-10-17 00:04:41 +02:00
nix/develop/bin/nix-develop
Gergely Nagy 3935dfdac3 Add a nix/develop action
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2023-09-22 20:37:44 +02:00

8 lines
208 B
Bash
Executable file

#! /usr/bin/env bash
set -eo pipefail
workdir="$(mktemp -d)"
trap 'rm -rf "$workdir"' EXIT
echo "${INPUT_RUN}" >"${workdir}/run.sh"
nix develop "${INPUT_FLAKE}#${INPUT_PACKAGE}" -c bash "${workdir}/run.sh"