Skip to content

Commit 627e748

Browse files
yvan-srakajfroche
authored andcommitted
chore: fix a warning about overrideAttrs usage
trace: evaluation warning: packer-1.13.1 was overridden with `version` but not `src` at /nix/store/y2ddpvhfvv5pshcrj0jckgz36fm9n3c6-source/nix/devShells.nix:49:17. This is most likely not what you want. In order to properly change the version of a package, override both the `version` and `src` attributes: hello.overrideAttrs (oldAttrs: rec { version = "1.0.0"; src = pkgs.fetchurl { url = "mirror://gnu/hello/hello-${version}.tar.gz"; hash = "..."; }; }) (To silence this warning, set `__intentionallyOverridingVersion = true` in your `overrideAttrs` call.)
1 parent 770ab07 commit 627e748

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nix/devShells.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
ansible-lint
4848
(packer.overrideAttrs (_oldAttrs: {
4949
version = "1.7.8";
50+
__intentionallyOverridingVersion = true;
5051
}))
5152

5253
self'.packages.start-server

0 commit comments

Comments
 (0)