nixpkgs/pkgs/build-support/writers
Silvan Mosberger 33ffb05d39 writers: Allow string paths
Before this change, it was not possible to use string paths,
because then the `types.str.check` would succeed. So the only paths that
could be used were ones from the local filesystem via e.g.
`./some/path`.

We can easily fix this by using `types.path.check` instead to determine
whether we are dealing with a path.

This notably also allows using Nix-fetched sources as the content, e.g.
`fetchFromGitHub { ... } + "/some/file"`
2021-06-25 14:39:59 +02:00
..
default.nix writers: Allow string paths 2021-06-25 14:39:59 +02:00
test.nix tests.writers: use dashes instead of underscores in drv names 2021-06-08 14:06:41 +02:00