doc/crystal: Update to mention shard.lock file generation

authored by Silvan Mosberger and committed by Simon Bruder c6064b7c ffcff898

+2 -2
+2 -2
doc/languages-frameworks/crystal.section.md
··· 4 4 5 5 This section uses [Mint](https://github.com/mint-lang/mint) as an example for how to build a Crystal package. 6 6 7 - If the Crystal project has any dependencies, the first step is to get a `shards.nix` file encoding those. Get a copy of the project and go to its root directory such that its `shard.lock` file is in the current directory, then run `crystal2nix` in it 8 - 7 + If the Crystal project has any dependencies, the first step is to get a `shards.nix` file encoding those. Get a copy of the project and go to its root directory such that its `shard.lock` file is in the current directory. Executable projects should usually commit the `shard.lock` file, but sometimes that's not the case, which means you need to generate it yourself. With an existing `shard.lock` file, `crystal2nix` can be run. 9 8 ```bash 10 9 $ git clone https://github.com/mint-lang/mint 11 10 $ cd mint 12 11 $ git checkout 0.5.0 12 + $ if [ ! -f shard.lock ]; then nix-shell -p shards --run "shards lock"; fi 13 13 $ nix-shell -p crystal2nix --run crystal2nix 14 14 ``` 15 15