Can I add a package without a license to nixpkgs?

I found a useful tool called spice-autorandr on github and wrote a derivation for it, so that I could use that tool on my computer. The original author of the tool did not specify the license in their github repo.

Can I contribute a package and a service definition for this tool to nixpkgs, or should I refrain from doing this due to the missing license?

You can but you must mark it with license = licenses.unfree.

the .c file has mit so use mit https://github.com/seife/spice-autorandr/blob/0f61dc921b638761ee106b5891384c6348820b26/spice-autorandr.c

1 Like