1
0
Fork 0
mirror of https://git.madhouse-project.org/actions/nix.git synced 2025-05-10 05:59:54 +02:00

Add a nix/develop action

Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
This commit is contained in:
Gergely Nagy 2023-09-22 20:37:44 +02:00
parent 680f954a87
commit 3935dfdac3
5 changed files with 106 additions and 0 deletions

8
develop/bin/nix-develop Executable file
View file

@ -0,0 +1,8 @@
#! /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"