Commit Graph

18 Commits

Author SHA1 Message Date
Adam Stephens
952e686eab
nix-direnv: 1.4.0 -> 1.5.0 2021-11-02 12:36:46 -04:00
Bob van der Linden
e89057790a
nix-direnv: 1.2.6 -> 1.4.0 2021-06-28 11:33:48 +02:00
Luke Worth
03310df843
nix-direnv: make flakes support optional
`nix-direnv` depends on `nixUnstable` for flakes support, but that
causes it to print a warning unless your user is trusted or the
`experimental-features` setting is enabled. Neither of these are
desirable (note that setting `experimental-features` in nix.conf causes
warnings on `nixStable`).

Since flakes are experimental, this commit makes `nixStable` the default
and optionally allows `nixUnstable` with a new flag `enableFlakes`,
prioritising a good experience for users not using experimental
features.
2021-06-08 10:54:07 +10:00
Eelco Dolstra
62ee635d53
Replace nixFlakes -> nixUnstable 2021-05-21 15:23:52 +02:00
Jörg Thalheim
d6f2109d7f
nix-direnv: 1.2.5 -> 1.2.6 2021-05-14 08:51:35 +02:00
Bruno Bigras
45a122eee5 nix-direnv: 1.2.4 -> 1.2.5 2021-05-10 12:20:08 -04:00
R. RyanTM
fde16c9112 nix-direnv: 1.2.3 -> 1.2.4 2021-04-01 11:51:02 +00:00
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