diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-08-17 22:27:54 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-08-17 22:27:54 +0200 |
| commit | aa55de1820a5ae27ac32b9b0e33b18ae592b46fb (patch) | |
| tree | 3588105ee84d057c90b3ff2ff18d5d4e50fc4afc /pkgs/by-name/di/direnv-patched/package.nix | |
| parent | treewide: Update (diff) | |
| download | nixos-config-aa55de1820a5ae27ac32b9b0e33b18ae592b46fb.zip | |
modules/direnv: Implement pre-cached devshells
That means, that the devshells are only build once and centrally
updated. Ideally, they would be built upon system update, but I haven't
figured out a way to run `nix print-dev-env` in a nix build sandbox yet
(and hope, that it's not necessary anymore once, that functionality
moves to nixpkgs' `mkShell`).
Diffstat (limited to '')
| -rw-r--r-- | pkgs/by-name/di/direnv-patched/package.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/by-name/di/direnv-patched/package.nix b/pkgs/by-name/di/direnv-patched/package.nix new file mode 100644 index 00000000..64f55bba --- /dev/null +++ b/pkgs/by-name/di/direnv-patched/package.nix @@ -0,0 +1,10 @@ +{direnv}: +direnv.overrideAttrs (final: prev: { + pname = "${prev.pname}-patched"; + + patches = + (prev.patches or []) + ++ [ + ./0001-rc-Also-consider-.nenvrc-files.patch + ]; +}) |
