What would be the easiest way to make a new derivation that contains a subset of the output from a package? For example, say that
nix-build --no-link '<nixpkgs>' -A some-package produced the output:
/nix/store/<hash>-some-package-0.0.1/: some/things I want some/junk that I don't want polluting my profile
I want a new “package” with just the things I want linking to the old package, so I can install it without getting the junk. How would I do that?