jonringer / nix-template

Make creating nix expressions easy
Creative Commons Zero v1.0 Universal
205 stars 8 forks source link

homepage: generated URL ignores `--from-url`, creating weird hybrid results #56

Open SuperSamus opened 1 year ago

SuperSamus commented 1 year ago

So, I'm typing this command:

nix-template stdenv -n pkgs/games/ -p open-hexagon -u https://github.com/SuperV1234/SSVOpenHexagon

And I expect the homepage generated by nix-template to be https://github.com/SuperV1234/SSVOpenHexagon Instead, it generates https://github.com/SuperV1234/open-hexagon, which doesn't exist.

I think the cause is this line: https://github.com/jonringer/nix-template/blob/bf63d5e0ee687b02dfc0c69fad2a77771d6d2f1a/src/cli.rs#L194

jonringer commented 7 months ago

Yea, if -u is passed, I should just inherit that. Thanks, I'll look into this