From b48400a6b1ab7595ac0c2dbac461d02217d18888 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 12 Jun 2019 22:25:05 -0300 Subject: default.nix: Use shell helper functions from utils.nix --- utils.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'utils.nix') diff --git a/utils.nix b/utils.nix index 3167399..438a5d8 100644 --- a/utils.nix +++ b/utils.nix @@ -81,6 +81,20 @@ in rec { touch $out ''; }); + shellEnvironmentBuild = shellBuildInputs: + baseTask.overrideAttrs (baseAttrs: { + name = "${baseAttrs.name}-shell-build-inputs"; + buildPhase = '' + echo "Can build shell environment for shellBuildInputs!" + echo noop > $out + ''; + }); + shellEnvironment = shellBuildInputs: + baseTask.overrideAttrs (baseAttrs: + pkgs.mkshell { + name = "${baseAttrs.name}-shell"; + buildInputs = shellBuildInputs; + }); overwritingPublishScript = { docsDerivation, overwrite ? true }: pkgs.writeShellScriptBin "publish.sh" '' set -euo pipefail -- cgit v1.2.3