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:
parent
680f954a87
commit
3935dfdac3
5 changed files with 106 additions and 0 deletions
8
develop/bin/nix-develop
Executable file
8
develop/bin/nix-develop
Executable 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"
|
Loading…
Add table
Add a link
Reference in a new issue