aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--utils.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/utils.nix b/utils.nix
index 3167399..ac49ac2 100644
--- a/utils.nix
+++ b/utils.nix
@@ -81,6 +81,19 @@ 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:
+ pkgs.mkShell {
+ name = "${baseName}-shell";
+ buildInputs = shellBuildInputs;
+ };
overwritingPublishScript = { docsDerivation, overwrite ? true }:
pkgs.writeShellScriptBin "publish.sh" ''
set -euo pipefail