Commit Graph

11 Commits

Author SHA1 Message Date
Andreas Schmid
d81d591d13 nix-direnv: fix NIX_BIN_PREFIX substitution in built direnvrc
* Reason: statically set `${NIX_BIN_PREFIX}` within generated
  `direnvrc`.
* Before it only replaced the `-z ${NIX_BIN_PREFIX:-}` check
  which therefore never was `true`. So, also `NIX_BIN_PREFIX` never got
  set such that its usage later always failed execution with
  `NIX_BIN_PREFIX: unbound variable`. With the fix, the line containing
  the check will no longer be replaced.
* Solves https://github.com/nix-community/nix-direnv/issues/70
* See also discussion on #114622

Signed-off-by: Andreas Schmid <service@aaschmid.de>
2021-03-03 08:49:32 +01:00
adisbladis
349b8cfd36
nix-direnv: Fix nix executable paths
Match the upstream change in:
991ea66bb8
2021-02-19 11:56:59 +01:00
R. RyanTM
9a73f86cad nix-direnv: 1.2.1 -> 1.2.3 2021-02-18 12:22:50 +00:00
R. RyanTM
e58c59c3dc nix-direnv: 1.2 -> 1.2.1 2021-01-22 16:49:58 +00:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Jörg Thalheim
3fecd395a3
nix-direnv: 1.1 -> 1.2 2020-12-25 20:29:03 +01:00
Pavol Rusnak
2c931312ce treewide: simplify rev/repo arguments in src
+ use fetchFromGithub where possible
2020-11-01 23:02:24 -08:00
Jörg Thalheim
103e3da0ab
nix-direnv: 1.0.0 -> 1.1 2020-08-16 12:59:54 +01:00
Jörg Thalheim
886f9fc37e
nix-direnv: add myself as maintainer 2020-05-11 06:49:37 +01:00
Jörg Thalheim
9d405dd370
nix-direnv: add preInstall/postInstall hooks 2020-05-11 06:49:23 +01:00
Damien Cassou
d531e72397
nix-direnv: init at 1.0.0 2020-05-10 20:09:24 +02:00