aboutsummaryrefslogtreecommitdiff
path: root/.config/nixpkgs
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2023-09-24 14:20:13 -0400
committertdro <tdro@users.noreply.github.com>2023-09-24 14:20:13 -0400
commit83b22a85d773ae66e6492c6b968a9cde1b681981 (patch)
tree0ba592cb63bf33c25f3cda6207174ee19fdab9c4 /.config/nixpkgs
parent1a90d9ec47ee8081c6db699f2c61c5e9111d0121 (diff)
downloaddotfiles-83b22a85d773ae66e6492c6b968a9cde1b681981.tar.gz
dotfiles-83b22a85d773ae66e6492c6b968a9cde1b681981.tar.bz2
dotfiles-83b22a85d773ae66e6492c6b968a9cde1b681981.zip
.config/nixpkgs/helpers: Remove
No longer needed
Diffstat (limited to '.config/nixpkgs')
-rw-r--r--.config/nixpkgs/helpers/mkShellPure.nix59
1 files changed, 0 insertions, 59 deletions
diff --git a/.config/nixpkgs/helpers/mkShellPure.nix b/.config/nixpkgs/helpers/mkShellPure.nix
deleted file mode 100644
index 8ffa941..0000000
--- a/.config/nixpkgs/helpers/mkShellPure.nix
+++ /dev/null
@@ -1,59 +0,0 @@
-### Experimental pure version of mkShellMinimal that clears all environment variables.
-### Derived Source: https://github.com/NixOS/nixpkgs/commit/459771518d44f60b59a19381d07b12297908215d
-### Article: https://fzakaria.com/2021/08/02/a-minimal-nix-shell.html
-### Usage:
-
-# let
-#
-# name = "nix-shell.pure";
-# pkgs = import <nixpkgs> { };
-#
-# mkShellPure = pkgs.callPackage (builtins.fetchurl {
-# url = "https://raw.githubusercontent.com/tdro/dotfiles/b710281b132056105709c03dda1899a6afc68a93/.config/nixpkgs/helpers/mkShellPure.nix";
-# sha256 = "1ciwifsx2hrp0ymm077zfb5q8ravrk545bda1q249y2spw9np4ms";
-# }) { };
-#
-# in mkShellPure {
-# packages = [ pkgs.hello pkgs.coreutils ];
-# shellHook = ''
-# export ENV=ENV
-# env
-# hello
-# export PS1='\h (${name}) \W \$ '
-# '';
-# }
-
-{ writeTextFile, writeScript, system }:
-
-{ shellHook ? "", packages ? [ ], ... }@attrs:
-derivation ({
- inherit system;
-
- name = "pure-nix-shell";
-
- "stdenv" = writeTextFile rec {
- name = "setup";
- executable = true;
- destination = "/${name}";
- text = ''
- set -e
- NEW_PATH=
- for package in ${toString packages}; do
- export NEW_PATH=$package/bin:$NEW_PATH
- done
- exec /usr/bin/env --ignore-environment /bin/sh -c "
- export PATH=$NEW_PATH
- ${shellHook}
- /bin/sh
- "
- '';
- };
-
- builder = writeScript "builder.sh" ''
- #!/bin/sh
- echo
- echo "This derivation is not meant to be built, unless you want to capture the dependency closure.";
- echo
- export > $out
- '';
-} // attrs)