Is there any way to force removing a package from /nix/store/..
I am testing my expression for my package and want to make sure it will rebuild correctly.
The problem is if I build my package once, the next time I build it again it will use the cache.
I use this command to test my package
nix-shell -I nixpkgs=</path/to/repo> -p <package_name>
I don't want to use nix-collect-garbage
because it remove lot of buildInputs
too.
Looking for something like nix-cg <package_name>
--check
argument, for example,nix-build '<nixpkgs>' -A hello --check
will rebuildhello
even if it is available in cache--check
is not listed as an option undernix-build
man page (nor undernix-instantiate
's), and only found it undernix-store
's by accident... (I guess that's why it works withnix-shell
as well.)