We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41b30c0 commit e56a779Copy full SHA for e56a779
pkgs/emacs/lock/default.nix
@@ -1,7 +1,7 @@
1
{
2
lib,
3
nix,
4
- nixfmt,
+ nixfmt-rfc-style,
5
jq,
6
runCommandLocal,
7
writeTextFile,
@@ -65,9 +65,8 @@ assert (flakeNix || archiveLock); let
65
# It would be better to use either nix-eval or nix-instantiate to generate a
66
# proper Nix, but it is troublesome to run a nested Nix during a build phase.
67
generateFlakeNix = ''
68
- ${nixfmt}/bin/nixfmt < $flakeNixPath \
69
- | sed -e 's/<LAMBDA>/{ ... }: { }/' \
70
- > "$out/flake.nix"
+ sed -e 's/<LAMBDA>/{ ... }: { }/' $flakeNixPath > "$out/flake.nix"
+ ${nixfmt-rfc-style}/bin/nixfmt "$out/flake.nix"
71
'';
72
73
generateArchiveLock = ''
0 commit comments