Closed sternenseemann closed 9 years ago
I don't really get what you mean. Could you elaborate this in more detail?
In @shak-mar's new branch we got a reasonable number of nix expressions.
OK, that makes sense. What would you propose doing? Writitng a bash script to generate the nix-expressions with the help of cabal2nix?
Indeed something like that.
@shak-mar Do you want to do it, as you already created the expressions in your branch?
I don’t get what you want me to do. Do you request a bash script to generate the nix expressions? Something like:
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p cabal2nix
for p in hprotoc protocol-buffers protocol-buffers-descriptor; do
cabal2nix cabal://$p > $p.nix
done
Note that you need to have run cabal update
at least once beforehand.
Adding an appropriate note to CONTRIBUTING.md
should be enough.
cabal2nix $your_source_of_choice > $package_name.nix
And then adding the following line to the folded list in shell.nix
is all there is to do.
(entry ${packageName})
A improvement of
sahe
, maybe?