Introduce a new overrideInputs on {default,shell}Nix #49

Closed
ckiee wants to merge 2 commits from ckiee/add-overrideInputs into master

2 commits

Author SHA1 Message Date
mei (ckie) 98797efd23
Change README.md instructions to be slightly more versatile.
Accept other forks also with type="github".

This is enough to be a bit more convenient in a few more
cases once this propagates into new future projects.
2023-01-01 23:47:37 +02:00
mei (ckie) 23b7a173da
Introduce a new overrideInputs on {default,shell}Nix
This allows the user of this non-flake to have similar functionality
to `follows`.

Example (default.nix):

    nix-repl> (import ./.).default
    «derivation /nix/store/axgvq22kyb8ymchzq1mjayms4jdl6ni6-ledc-0.1.0.drv»

    nix-repl> ((import ./.).overrideInputs { nixpkgs = <nixpkgs>; }).default
    «derivation /nix/store/r8zw693hpg91yx6f57hyx1gk4zdiq2lm-ledc-0.1.0.drv»
2023-01-01 23:42:00 +02:00